lithium\tests\cases\template\ViewTest::testTwoStepRenderWithVariableCapture PHP Method

testTwoStepRenderWithVariableCapture() public method

    public function testTwoStepRenderWithVariableCapture()
    {
        $view = new View(array('loader' => 'Simple', 'renderer' => 'Simple'));
        $result = $view->render(array(array('path' => 'element', 'capture' => array('data' => 'foo')), array('path' => 'template')), array('name' => "Cap'n Crunch"), array('element' => 'Logged in as: {:name}.', 'template' => '--{:foo}--'));
        $this->assertEqual('--Logged in as: Cap\'n Crunch.--', $result);
    }