@group integration
Expanded class hierarchy of ScssphpFilterTest
class ScssphpFilterTest extends \PHPUnit_Framework_TestCase {
protected function setUp() {
$this->filter = new ScssphpFilter();
}
public function testFilterLoad() {
$expected = <<<EOF
.foo .bar {
width: 2; }
EOF;
$asset = new StringAsset('.foo{.bar{width:1+ 1;}}');
$asset
->load();
$this->filter
->filterLoad($asset);
$this
->assertEquals($expected, $asset
->getContent(), '->filterLoad() parses the content');
}
public function testImport() {
$expected = <<<EOF
.foo {
color: blue; }
.foo {
color: red; }
EOF;
$asset = new FileAsset(__DIR__ . '/fixtures/sass/main.scss');
$asset
->load();
$this->filter
->filterLoad($asset);
$this
->assertEquals($expected, $asset
->getContent(), '->filterLoad() sets an include path based on source url');
}
}
Name | Modifiers | Type | Description | Overrides |
---|---|---|---|---|
ScssphpFilterTest:: |
protected | function | ||
ScssphpFilterTest:: |
public | function | ||
ScssphpFilterTest:: |
public | function |