private function getStatus(HttpResponse $response) : string { return sprintf('%s %s', $response->getStatus(), $response->getReason()); }
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()); }