phpunit classgzip_fileTest.php
- Initializing. - Standard code.
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user