Example #1
0
 public function testRpcMethodCallThrowsOnJsonRpcFault()
 {
     $code = -32050;
     $message = 'foo';
     $error = new Error($message, $code);
     $response = new Response();
     $response->setError($error);
     $json = $response->toJson();
     $response = $this->makeHttpResponseFrom($json);
     $this->httpAdapter->setResponse($response);
     $this->setExpectedException('Zend\\Json\\Server\\Exception\\ErrorException', $message, $code);
     $this->jsonClient->call('foo');
 }