phpunit classtar_fileTest.php

- Initializing.
- Standard code.
This commit is contained in:
Marco Antonio Nina
2012-07-13 18:29:09 -04:00
parent ebf51b6028
commit ce3a105b3d

View File

@@ -26,7 +26,7 @@ class classtar_fileTest extends PHPUnit_Framework_TestCase
*/
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()
{
$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');
$params = $r->getParameters();
}
}
}