BUG 0000 "PHPUNIT instantiation classwsResponseTest.php" SOLVED

- Instantiation of the class
- Formatting file to PSR2
This commit is contained in:
Victor Saisa Lopez
2012-07-13 18:40:15 -04:00
parent f43d5fe6f1
commit 06809e2e96

View File

@@ -26,7 +26,7 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase
*/ */
protected function setUp() protected function setUp()
{ {
$this->object = new wsResponse(); $this->object = new wsResponse(0, null);
} }
/** /**
@@ -43,7 +43,8 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase
*/ */
public function testNumberOfMethodsInThisClass() public function testNumberOfMethodsInThisClass()
{ {
$methods = get_class_methods('wsResponse'); $this->assertTrue( count($methods) == 3); $methods = get_class_methods('wsResponse');
$this->assertTrue(count($methods) == 3);
} }
/** /**
@@ -90,5 +91,5 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase
$r = new ReflectionMethod('wsResponse', 'getPayloadArray'); $r = new ReflectionMethod('wsResponse', 'getPayloadArray');
$params = $r->getParameters(); $params = $r->getParameters();
} }
}
}