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);
 }
Example #2
0
 public function getHeader()
 {
     return ResponseMapper::getMessageWithHttpProtocol($this->_httpCode);
 }