phpunit classworkspaceToolsTest.php

- Initializing.
- Standard code.
This commit is contained in:
Marco Antonio Nina
2012-07-13 15:32:18 -04:00
parent 21837ffdf2
commit 9cdfade4d8

View File

@@ -26,7 +26,7 @@ class classworkspaceToolsTest extends PHPUnit_Framework_TestCase
*/ */
protected function setUp() protected function setUp()
{ {
$this->object = new workspaceTools(); $this->object = new workspaceTools('$workspaceName');
} }
/** /**
@@ -43,7 +43,8 @@ class classworkspaceToolsTest extends PHPUnit_Framework_TestCase
*/ */
public function testNumberOfMethodsInThisClass() public function testNumberOfMethodsInThisClass()
{ {
$methods = get_class_methods('workspaceTools'); $this->assertTrue( count($methods) == 27); $methods = get_class_methods('workspaceTools');
$this->assertTrue( count($methods) == 27);
} }
/** /**
@@ -469,5 +470,5 @@ class classworkspaceToolsTest extends PHPUnit_Framework_TestCase
$this->assertTrue( $params[3]->isOptional () == true); $this->assertTrue( $params[3]->isOptional () == true);
$this->assertTrue( $params[3]->getDefaultValue() == '1'); $this->assertTrue( $params[3]->getDefaultValue() == '1');
} }
}
}