public static getMessageWithHttpProtocol ( $code, $protocol = 'HTTP/1.1 ' ) |
/** * @test */ public function shouldReturnResponseWithProtocol() { //given $code = 404; //when $response = ResponseMapper::getMessageWithHttpProtocol($code); //then $this->assertEquals('HTTP/1.1 404 Not Found', $response); }
public function getHeader() { return ResponseMapper::getMessageWithHttpProtocol($this->_httpCode); }