getMessageWithHttpProtocol() public static method

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