BUG 0000 "PHPUNIT instantiation classPMScriptTest.php" SOLVED

- Instantiation of the class
- Formatting file to PSR2
This commit is contained in:
Victor Saisa Lopez
2012-07-13 18:51:49 -04:00
parent 6f7e6a099f
commit 58ae590f1f

View File

@@ -43,7 +43,8 @@ class classPMScriptTest extends PHPUnit_Framework_TestCase
*/ */
public function testNumberOfMethodsInThisClass() public function testNumberOfMethodsInThisClass()
{ {
$methods = get_class_methods('PMScript'); $this->assertTrue( count($methods) == 7); $methods = get_class_methods('PMScript');
$this->assertTrue(count($methods) == 7);
} }
/** /**
@@ -71,7 +72,7 @@ class classPMScriptTest extends PHPUnit_Framework_TestCase
$this->assertTrue($params[0]->getName() == 'aFields'); $this->assertTrue($params[0]->getName() == 'aFields');
$this->assertTrue($params[0]->isArray() == false); $this->assertTrue($params[0]->isArray() == false);
$this->assertTrue($params[0]->isOptional () == true); $this->assertTrue($params[0]->isOptional () == true);
$this->assertTrue( $params[0]->getDefaultValue() == 'Array'); $this->assertTrue($params[0]->getDefaultValue() == array());
} }
/** /**
@@ -146,5 +147,5 @@ class classPMScriptTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('PMScript', 'evaluate'); $r = new ReflectionMethod('PMScript', 'evaluate');
$params = $r->getParameters(); $params = $r->getParameters();
} }
} }