PhroznTest\Processor\TwigTest::testRender PHP Method

testRender() public method

public testRender ( )
    public function testRender()
    {
        $processor = $this->getProcessor($this->path . 'tpl1.twig');
        $template = file_get_contents($this->path . 'tpl1.twig');
        $rendered = $processor->render($template, array('a_variable' => 'Aha!', 'navigation' => array(array('href' => 'link1', 'caption' => 'caption1'), array('href' => 'link1', 'caption' => 'caption1'))));
        $static = file_get_contents($this->path . 'tpl1.html');
        $this->assertSame(trim($static), trim($rendered));
    }