Exemplo n.º 1
0
 /**
  * Sends the body to the output buffer.
  * @param \Brickoo\Component\Http\HttpMessageBody $messageBody
  * @return \Brickoo\Component\Http\HttpResponseSender
  */
 private function sendHttpMessageBody(HttpMessageBody $messageBody)
 {
     echo $messageBody->getContent();
     return $this;
 }
Exemplo n.º 2
0
 /**
  * @covers Brickoo\Component\Http\HttpMessageBody::getContent
  * @expectedException \InvalidArgumentException
  */
 public function testSetContentInvalidContentArgumentThrowsException()
 {
     $messageBody = new HttpMessageBody("");
     $messageBody->setContent(["wrongType"]);
 }