| 1 | <?php |
||
| 11 | class ClientExceptionsTest extends AbstractJsonRpcClientTest |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @expectedException \InvalidArgumentException |
||
| 15 | * @expectedExceptionMessage Request should be either array or single RpcRequestInterface instance |
||
| 16 | */ |
||
| 17 | public function testInvalidArrayArgumentException() |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @expectedException \ScayTrase\Api\Rpc\Exception\RemoteCallFailedException |
||
| 25 | * @expectedExceptionMessage Error completing request |
||
| 26 | */ |
||
| 27 | public function testGuzzleException() |
||
| 34 | } |
||
| 35 |
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: