phpunit classgzip_fileTest.php

- Initializing.
- Standard code.
This commit is contained in:
Marco Antonio Nina
2012-07-13 16:53:32 -04:00
parent 1007be682b
commit 3b1b6d683e

View File

@@ -26,7 +26,7 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
*/ */
protected function setUp() protected function setUp()
{ {
$this->object = new gzip_file(); $this->object = new gzip_file('name');
} }
/** /**
@@ -43,7 +43,8 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
*/ */
public function testNumberOfMethodsInThisClass() public function testNumberOfMethodsInThisClass()
{ {
$methods = get_class_methods('gzip_file'); $this->assertTrue( count($methods) == 18); $methods = get_class_methods('gzip_file');
$this->assertTrue( count($methods) == 18);
} }
/** /**
@@ -84,5 +85,5 @@ class classgzip_fileTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('gzip_file', 'open_archive'); $r = new ReflectionMethod('gzip_file', 'open_archive');
$params = $r->getParameters(); $params = $r->getParameters();
} }
}
}