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