Пример #1
0
 /**
  * @covers generateCss
  */
 public function testGenerateCss()
 {
     $env = new Context();
     $output = new StandardOutput();
     $q = new QuotedNode('"foobar"', 'foobar');
     $q->generateCss($env, $output);
     $this->assertEquals('"foobar"', $output->toString());
 }
Пример #2
0
 /**
  * @inheritdoc
  */
 public function generateCSS(Context $context, OutputInterface $output)
 {
     $isNotReference = !isset($this->path->currentFileInfo) || !$this->path->currentFileInfo->reference;
     if ($this->css && $isNotReference) {
         $output->add('@import ');
         $this->path->generateCSS($context, $output);
         if ($this->features) {
             $output->add(' ');
             $this->features->generateCSS($context, $output);
         }
         $output->add(';');
     }
     return $output;
 }