Merge pull request #284 from marcoAntonioNina/master

phpunit classtar_fileTest.php
This commit is contained in:
julceslauhub
2012-07-13 15:31:29 -07:00

View File

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