Example #1
0
 function it_handles_unexpected_exceptions(MethodInterface $method, ClientInterface $client, RequestInterface $request, \Exception $exception)
 {
     $client->send($request)->willThrow($exception->getWrappedObject());
     $this->shouldThrow('Cardinity\\Exception\\UnexpectedError')->duringSendRequest($method, 'POST', 'https://api.cardinity.com/v1/');
 }