diff --git a/tests/automated/workflow/engine/classes/classwsResponseTest.php b/tests/automated/workflow/engine/classes/classwsResponseTest.php index 7d81df665..02031aece 100644 --- a/tests/automated/workflow/engine/classes/classwsResponseTest.php +++ b/tests/automated/workflow/engine/classes/classwsResponseTest.php @@ -26,7 +26,7 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase */ protected function setUp() { - $this->object = new wsResponse(); + $this->object = new wsResponse(0, null); } /** @@ -38,12 +38,13 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase } /** - * This is the default method to test, if the class still having + * This is the default method to test, if the class still having * the same number of methods. */ public function testNumberOfMethodsInThisClass() { - $methods = get_class_methods('wsResponse'); $this->assertTrue( count($methods) == 3); + $methods = get_class_methods('wsResponse'); + $this->assertTrue(count($methods) == 3); } /** @@ -62,7 +63,7 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase $this->assertTrue( $params[1]->getName() == 'message'); $this->assertTrue( $params[1]->isArray() == false); $this->assertTrue( $params[1]->isOptional () == false); - } + } /** * @covers wsResponse::getPayloadString @@ -77,7 +78,7 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase $this->assertTrue( $params[0]->getName() == 'operation'); $this->assertTrue( $params[0]->isArray() == false); $this->assertTrue( $params[0]->isOptional () == false); - } + } /** * @covers wsResponse::getPayloadArray @@ -89,6 +90,6 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase $this->assertTrue( in_array('getPayloadArray', $methods ), 'exists method getPayloadArray' ); $r = new ReflectionMethod('wsResponse', 'getPayloadArray'); $params = $r->getParameters(); - } + } +} - }