/** @expectedException \GuzzleHttp\Exception\GuzzleException */
 public function testFailedCall()
 {
     $client = new JsonRpcClient($this->getClient(), new Uri('http://localhost/'));
     $request = $this->createRequestForSingleInvocation('/test-notify', ['parameter' => 'test'], new ConnectException('Connection failed', new Request('POST', 'test')));
     $client->invoke([$request])->getResponse($request);
 }
Пример #2
0
 /**
  * @param RpcRequestInterface|RpcRequestInterface[] $calls
  *
  * @return ResponseCollectionInterface
  *
  * @throws RpcExceptionInterface
  */
 public function invoke($calls)
 {
     return $this->client->invoke($calls);
 }