lithium\tests\cases\net\http\MediaTest::testPlainTextOutput PHP Method

testPlainTextOutput() public method

Tests that rendering plain text correctly returns the render data as-is.
public testPlainTextOutput ( )
    public function testPlainTextOutput()
    {
        $response = new Response();
        $response->type('text');
        Media::render($response, "Hello, world!");
        $result = $response->body;
        $this->assertEqual(array("Hello, world!"), $result);
    }