Example #1
0
 /**
  * @expectedException \JsonRpc\ClientException
  * @expectedExceptionCode 0
  * @expectedExceptionMessage Unknown error
  */
 public function testUnknownError()
 {
     $id = 9;
     $transport = $this->getTransportMockSendRequest(self::HTTP_CODE_ERROR, "{\"jsonrpc\":\"2.0\",\"error\":{},\"id\":{$id}}");
     $client = new Client($transport);
     $client->call(self::CALL_METHOD, []);
 }