Пример #1
0
 /**
  * Returns the response message header.
  * @return \Brickoo\Component\Http\HttpMessageHeader
  */
 public function getHeader()
 {
     return $this->message->getHeader();
 }
Пример #2
0
 /**
  * @covers Brickoo\Component\Http\HttpMessage::__construct
  * @covers Brickoo\Component\Http\HttpMessage::getHeader
  */
 public function testGetHeader()
 {
     $messageHeader = $this->getMessageHeaderStub();
     $httpMessage = new HttpMessage($messageHeader, $this->getHttpMessageBodyStub());
     $this->assertSame($messageHeader, $httpMessage->getHeader());
 }