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