public function testResponseToString()
 {
     $statusCode = '204';
     $content = 'foo';
     $headers = array('foo' => 'bar');
     $response = new Response($statusCode, $content, $headers);
     $this->assertInternalType('string', $response->__toString());
 }
 /**
  * @Then /^the response header "(.*)" should be "(.*)"$/
  */
 public function checkResponseHeader($name, $expectedValue)
 {
     $value = f\get_or($this->response->getHeaders(), $name, null);
     if ($value !== $expectedValue) {
         throw new Exception(sprintf('The response header "%s" is "%s" and it should be "%s".', $name, $value, $expectedValue));
     }
 }
 public function process(Response $response)
 {
     return json_decode($response->getContent(), true);
 }