getMessageWithHttpProtocol() public static method

public static getMessageWithHttpProtocol ( $code, $protocol = 'HTTP/1.1 ' )
コード例 #1
0
ファイル: ResponseMapperTest.php プロジェクト: letsdrink/ouzo
 /**
  * @test
  */
 public function shouldReturnResponseWithProtocol()
 {
     //given
     $code = 404;
     //when
     $response = ResponseMapper::getMessageWithHttpProtocol($code);
     //then
     $this->assertEquals('HTTP/1.1 404 Not Found', $response);
 }
コード例 #2
0
ファイル: OuzoExceptionData.php プロジェクト: letsdrink/ouzo
 public function getHeader()
 {
     return ResponseMapper::getMessageWithHttpProtocol($this->_httpCode);
 }