public function testSetBody() { $r = new Response(200, array('Content-Type' => 'text/plain')); $r->setBody('This is a test.'); $this->assertEquals('This is a test.', $r->getBody()); }