/** * Runs the visitor * * @param ILess_Node|array $root The root node */ public function run($root) { $finder = new ILess_Visitor_ExtendFinder(); $finder->run($root); if (!$finder->foundExtends) { return $root; } $root->allExtends = $this->doExtendChaining($root->allExtends, $root->allExtends); $this->allExtendsStack = array(); $this->allExtendsStack[] =& $root->allExtends; return $this->visit($root); }
/** * @covers __constructor */ public function testVisit() { $v = new ILess_Visitor_ExtendFinder(); $this->assertFalse($v->isReplacing()); }