BUG 0000 "PHPUNIT instantiation classwsResponseTest.php" SOLVED
- Instantiation of the class - Formatting file to PSR2
This commit is contained in:
@@ -26,7 +26,7 @@ class classwsResponseTest extends PHPUnit_Framework_TestCase
|
||||
*/
|
||||
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()
|
||||
{
|
||||
$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');
|
||||
$params = $r->getParameters();
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user