public function testResponse() { $statusCode = '204'; $content = 'foo'; $headers = array('foo' => 'bar'); $response = new Response($statusCode, $content, $headers); $this->assertSame($statusCode, $response->getStatusCode()); $this->assertSame($content, $response->getContent()); $this->assertSame($headers, $response->getHeaders()); }
public function process(Response $response) { return json_decode($response->getContent(), true); }