PhroznTest\Processor\ScssTest::testRender PHP Method

testRender() public method

public testRender ( )
    public function testRender()
    {
        $configSample = array('some' => 'setting');
        $processor = new Processor($configSample);
        $tpl = file_get_contents($this->path . 'tpl1.scss');
        $rendered = $processor->render($tpl, array('some' => 'val'));
        $static = file_get_contents($this->path . 'tpl1.scss.css');
        $this->assertSame(trim($static), trim($rendered));
        $this->assertSame($processor->getConfig(), $configSample);
    }