object = new zip_file('filezip'); } /** * Tears down the fixture, for example, closes a network connection. * This method is called after a test is executed. */ protected function tearDown() { } /** * This is the default method to test, if the class still having * the same number of methods. */ public function testNumberOfMethodsInThisClass() { $methods = get_class_methods('zip_file'); $this->assertTrue( count($methods) == 14); } /** * @covers zip_file::zip_file * @todo Implement testzip_file(). */ public function testzip_file() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('zip_file', $methods ), 'exists method zip_file' ); $r = new ReflectionMethod('zip_file', 'zip_file'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'name'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers zip_file::create_zip * @todo Implement testcreate_zip(). */ public function testcreate_zip() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('create_zip', $methods ), 'exists method create_zip' ); $r = new ReflectionMethod('zip_file', 'create_zip'); $params = $r->getParameters(); } }