Ouzo\Http\ResponseMapper::getMessageWithHttpProtocol PHP Метод

getMessageWithHttpProtocol() публичный статический Метод

public static getMessageWithHttpProtocol ( $code, $protocol = 'HTTP/1.1 ' )
    public static function getMessageWithHttpProtocol($code, $protocol = 'HTTP/1.1 ')
    {
        return Strings::appendPrefix(self::getMessage($code), $protocol);
    }

Usage Example

Пример #1
0
 /**
  * @test
  */
 public function shouldReturnResponseWithProtocol()
 {
     //given
     $code = 404;
     //when
     $response = ResponseMapper::getMessageWithHttpProtocol($code);
     //then
     $this->assertEquals('HTTP/1.1 404 Not Found', $response);
 }
All Usage Examples Of Ouzo\Http\ResponseMapper::getMessageWithHttpProtocol