Ejemplo n.º 1
0
 /**
  * Returns the response message body.
  * @return \Brickoo\Component\Http\HttpMessageBody
  */
 public function getBody()
 {
     return $this->message->getBody();
 }
Ejemplo n.º 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());
 }