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

testRender() public method

public testRender ( )
    public function testRender()
    {
        $response = new Response();
        $response->type('json');
        $data = array('something');
        Media::render($response, $data);
        $result = $response->headers();
        $this->assertEqual(array('Content-Type: application/json; charset=UTF-8'), $result);
        $result = $response->body();
        $this->assertEqual($data, $result);
    }