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

testResponseModification() public method

Tests that the Response object can be directly modified from a templating class or encode function.
    public function testResponseModification()
    {
        Media::type('my', 'text/x-my', array('view' => 'lithium\\tests\\mocks\\net\\http\\Template'));
        $response = new Response();
        Media::render($response, null, array('type' => 'my'));
        $this->assertEqual('Value', $response->headers('Custom'));
    }