コード例 #1
0
 public function it_raises_no_exception_on_ok_response(RequestInterface $request)
 {
     $response = new Response(200, null, '{"ok":true,"error":"something_good"}');
     $event = new Event();
     $event['request'] = $request->getWrappedObject();
     $event['response'] = $response;
     $this->shouldNotThrow('\\Guzzle\\Http\\Exception\\BadResponseException')->duringOnRequestSent($event);
 }