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