MiniAsset\Test\TestCase\Filter\ScssFilterTest::testParsing PHP Метод

testParsing() публичный Метод

public testParsing ( )
    public function testParsing()
    {
        $hasSass = `which sass`;
        if (!$hasSass) {
            $this->markTestSkipped('Requries ruby and sass to be installed.');
        }
        $this->filter->settings(array('sass' => trim($hasSass)));
        $content = file_get_contents($this->_cssDir . 'test.scss');
        $result = $this->filter->input($this->_cssDir . 'test.scss', $content);
        $expected = file_get_contents($this->_cssDir . 'compiled_scss.css');
        $this->assertEquals($expected, $result);
    }