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