Beispiel #1
0
 public function testImportAbsolutePath()
 {
     $file = __DIR__ . '/../fixtures/styleAbsolute.scss';
     $filter = new VariablesFilter(array('fixturesAbsolutePath' => realpath(__DIR__ . '/../fixtures')));
     $code = file_get_contents($file);
     $filtered = $filter($code);
     $less = $this->filter->__invoke($filtered, $this->compiler, $file);
     $this->assertSame(file_get_contents(__DIR__ . '/../fixtures/styleAbsolute.scss.expected'), $less);
 }
Beispiel #2
0
 public function testReplace()
 {
     $file = __DIR__ . '/../fixtures/style.scss';
     $less = $this->filter->__invoke(file_get_contents($file), $this->compiler, $file);
     $this->assertSame(file_get_contents(__DIR__ . '/../fixtures/style.scss.expected'), $less);
 }