markTestSkipped('No node.js configuration.'); } $this->filter = new LessFilter($_SERVER['NODE_BIN'], array($_SERVER['NODE_PATH'])); } public function testFilterLoad() { $asset = new StringAsset('.foo{.bar{width:1+1;}}'); $asset->load(); $this->filter->filterLoad($asset); $this->assertEquals(".foo .bar {\n width: 2;\n}\n", $asset->getContent(), '->filterLoad() parses the content'); } public function testImport() { $expected = <<load(); $this->filter->filterLoad($asset); $this->assertEquals($expected, $asset->getContent(), '->filterLoad() sets an include path based on source url'); } }