/** * @covers generateCss */ public function testGenerateCss() { $env = new ILess_Environment(); $output = new ILess_Output(); $q = new ILess_Node_Quoted('"foobar"', 'foobar'); $q->generateCss($env, $output); $this->assertEquals('"foobar"', $output->toString()); }
/** * @see ILess_Node */ public function generateCSS(ILess_Environment $env, ILess_Output $output) { if ($this->css) { $output->add('@import ', $this->currentFileInfo, $this->index); $this->path->generateCSS($env, $output); if ($this->features) { $output->add(' '); $this->features->generateCSS($env, $output); } $output->add(';'); } return $output; }