object = new gzip_file('name'); } /** * 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('gzip_file'); $this->assertTrue( count($methods) == 18); } /** * @covers gzip_file::gzip_file * @todo Implement testgzip_file(). */ public function testgzip_file() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('gzip_file', $methods ), 'exists method gzip_file' ); $r = new ReflectionMethod('gzip_file', 'gzip_file'); $params = $r->getParameters(); $this->assertTrue( $params[0]->getName() == 'name'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); } /** * @covers gzip_file::create_gzip * @todo Implement testcreate_gzip(). */ public function testcreate_gzip() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('create_gzip', $methods ), 'exists method create_gzip' ); $r = new ReflectionMethod('gzip_file', 'create_gzip'); $params = $r->getParameters(); } /** * @covers gzip_file::open_archive * @todo Implement testopen_archive(). */ public function testopen_archive() { $methods = get_class_methods($this->object); $this->assertTrue( in_array('open_archive', $methods ), 'exists method open_archive' ); $r = new ReflectionMethod('gzip_file', 'open_archive'); $params = $r->getParameters(); } }