phpunit classwsCreateDepartmentResponseTest.php

- Initializing.
- Standard code.
This commit is contained in:
Marco Antonio Nina
2012-07-13 16:30:50 -04:00
parent e341b8c179
commit c296759d7e

View File

@@ -26,7 +26,7 @@ class classwsCreateDepartmentResponseTest extends PHPUnit_Framework_TestCase
*/
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()
{
$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]->isArray() == false);
$this->assertTrue( $params[2]->isOptional () == false);
}
}
}
}