Exemplo n.º 1
0
 private function getStatus(HttpResponse $response) : string
 {
     return sprintf('%s %s', $response->getStatus(), $response->getReason());
 }
Exemplo n.º 2
0
 public function testGetAndSetReason()
 {
     $request = new Response();
     $request->setReason("I'M A LITTLE TEAPOT");
     $this->assertEquals("I'M A LITTLE TEAPOT", $request->getReason());
 }
 /**
  * @return ResponseInterface
  */
 protected function convertResponse(Response $artaxResponse, RequestInterface $request, array $requestOptions)
 {
     return new \GuzzleHttp\Psr7\Response($artaxResponse->getStatus(), $artaxResponse->getAllHeaders(), $artaxResponse->getBody(), $artaxResponse->getProtocol(), $artaxResponse->getReason());
 }