phpunit classwsCreateDepartmentResponseTest.php
- Initializing. - Standard code.
This commit is contained in:
@@ -26,7 +26,7 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
protected function setUp()
|
protected function setUp()
|
||||||
{
|
{
|
||||||
$this->object = new wsCreateDepartmentResponse();
|
$this->object = new wsCreateDepartmentResponse('status', 'message', 'departmentUID');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -43,7 +43,8 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
|||||||
*/
|
*/
|
||||||
public function testNumberOfMethodsInThisClass()
|
public function testNumberOfMethodsInThisClass()
|
||||||
{
|
{
|
||||||
$methods = get_class_methods('wsCreateDepartmentResponse'); $this->assertTrue( count($methods) == 1);
|
$methods = get_class_methods('wsCreateDepartmentResponse');
|
||||||
|
$this->assertTrue( count($methods) == 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -65,6 +66,6 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
|
|||||||
$this->assertTrue( $params[2]->getName() == 'departmentUID');
|
$this->assertTrue( $params[2]->getName() == 'departmentUID');
|
||||||
$this->assertTrue( $params[2]->isArray() == false);
|
$this->assertTrue( $params[2]->isArray() == false);
|
||||||
$this->assertTrue( $params[2]->isOptional () == false);
|
$this->assertTrue( $params[2]->isOptional () == false);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user