protected function formatResponseHead(HttpResponseMock $response) { return sprintf('< %s', $response->getCode()) . PHP_EOL; }
protected function formatResponseHead(HttpResponseMock $response) { $contentType = $response->headers['Content-Type']; return sprintf('+ Response %s', $response->getCode()) . ($contentType ? " ({$contentType})" : '') . PHP_EOL; }