public function testPlainTextOutput() { $response = new Response(); $response->type('text'); Media::render($response, "Hello, world!"); $result = $response->body; $this->assertEqual(array("Hello, world!"), $result); }