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