PhroznTest\Processor\LessTest::testRenderImportLessDirective PHP Method

testRenderImportLessDirective() public method

    public function testRenderImportLessDirective()
    {
        $tpl = file_get_contents($this->path . 'tpl2.less');
        $expectedResult = file_get_contents($this->path . 'tpl1.css');
        $processor = new Processor();
        $processor->setConfig(array('phr_template_dir' => $this->path));
        $rendered = $processor->render($tpl);
        $this->assertSame(trim($rendered), trim($expectedResult));
    }