/** * 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; }
/** * @covers Brickoo\Component\Http\HttpMessageBody::getContent * @expectedException \InvalidArgumentException */ public function testSetContentInvalidContentArgumentThrowsException() { $messageBody = new HttpMessageBody(""); $messageBody->setContent(["wrongType"]); }