Merge pull request #245 from julceslauhub/master
classbzip_fileTest.php instance fixed, code standard checked
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user