コード例 #1
0
ファイル: ClientTest.php プロジェクト: nitro2010/JsonRPC
 /**
  * @expectedException RuntimeException
  */
 public function testParseError()
 {
     $client = new Client('http://localhost/');
     $client->parseResponse(json_decode('{"jsonrpc": "2.0", "error": {"code": -32700, "message": "Parse error"}, "id": null}', true));
 }