From 06809e2e96dd83ec1baf7791681c06931d4dda66 Mon Sep 17 00:00:00 2001 From: Victor Saisa Lopez Date: Fri, 13 Jul 2012 18:40:15 -0400 Subject: [PATCH] BUG 0000 "PHPUNIT instantiation classwsResponseTest.php" SOLVED - Instantiation of the class - Formatting file to PSR2 --- .../engine/classes/classwsResponseTest.php | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) 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(); - } + } +} - }