/** * 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::__construct * @covers Brickoo\Component\Http\HttpMessageBody::getContent */ public function testGetContent() { $content = "test content"; $messageBody = new HttpMessageBody($content); $this->assertEquals($content, $messageBody->getContent()); }