1 | <?php |
||
14 | class ComradeReaderTest extends \PHPUnit_Framework_TestCase |
||
15 | { |
||
16 | /** |
||
17 | * @return ComradeReader |
||
18 | */ |
||
19 | private function getReader() |
||
27 | |||
28 | /** |
||
29 | * Basic test for valid request |
||
30 | * |
||
31 | * @see examples/test-api-responses/colors.php |
||
32 | */ |
||
33 | public function testGet() |
||
41 | |||
42 | /** |
||
43 | * Test passing POST parameters |
||
44 | */ |
||
45 | public function testPassingPostAndGetParameters() |
||
58 | |||
59 | /** |
||
60 | * @expectedException \ComradeReader\Exception\ResourceNotFoundException |
||
61 | * @expectedExceptionMessage Resource "/this-should-not-be-found" was not found on remote server, got a HTTP 404 error while trying to get the resource. Please verify if the resource exists, and if the HTTP method is correct |
||
62 | */ |
||
63 | public function testNotFound() |
||
68 | } |
It seems like the type of the argument is not accepted by the function/method which you are calling.
In some cases, in particular if PHP’s automatic type-juggling kicks in this might be fine. In other cases, however this might be a bug.
We suggest to add an explicit type cast like in the following example: