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

testRenderWithOptionsMerging() public method

    public function testRenderWithOptionsMerging()
    {
        $base = Libraries::get(true, 'resources') . '/tmp';
        $this->skipIf(!is_writable($base), "Path `{$base}` is not writable.");
        $request = new Request();
        $request->params['controller'] = 'pages';
        $response = new Response();
        $response->type('html');
        $this->assertException("/Template not found/", function () use($response) {
            Media::render($response, null, compact('request'));
        });
        $this->_cleanUp();
    }