Merge pull request #245 from julceslauhub/master

classbzip_fileTest.php instance fixed, code standard checked
This commit is contained in:
julceslauhub
2012-07-13 08:37:00 -07:00

View File

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