PhroznTest\Processor\TwigTest::testStripFrontmatter PHP Method

testStripFrontmatter() public method

    public function testStripFrontmatter()
    {
        $processor = $this->getProcessor($this->path . 'twig-child-with-fm.twig');
        $template = file_get_contents($this->path . 'twig-child-with-fm.twig');
        $rendered = $processor->render($template, array('a_variable' => 'Aha!', 'boxes' => array(array('size' => 'huge', 'title' => 'phelephant'), array('size' => 'tiny', 'title' => 'mouse'))));
        $static = file_get_contents(dirname(__FILE__) . '/templates/twig-inherit.html');
        $this->assertSame(trim($static), trim($rendered));
    }