예제 #1
0
 /**
  * @covers generateCss
  */
 public function testGenerateCSS()
 {
     $env = new ILess_Environment();
     $a = new ILess_Node_Comment('my comment');
     $output = new ILess_Output();
     $a->generateCss($env, $output);
     $this->assertEquals($output->toString(), 'my comment');
 }
예제 #2
0
파일: ToCSS.php 프로젝트: poef/ariadne
 /**
  * Visits a comment node
  *
  * @param ILess_Node_Comment $node The node
  * @param ILess_VisitorArguments $arguments The arguments
  * @return ILess_Node_Comment
  */
 public function visitComment(ILess_Node_Comment $node, ILess_Visitor_Arguments $arguments)
 {
     if ($node->isSilent($this->getEnvironment())) {
         return array();
     }
     return $node;
 }