Exemplo n.º 1
0
 public function testEquals3()
 {
     $set = new BitSet(5);
     $set->set(2);
     $this->assertFalse($this->set->equals($set));
 }
 private function addToSetIfLocal($varName, BitSet $set)
 {
     if (!is_string($varName)) {
         return;
     }
     if (false === $this->scope->isDeclared($varName)) {
         return;
     }
     $var = $this->scope->getVar($varName);
     if (!isset($this->escaped[$var])) {
         $set->set($var->getIndex());
     }
 }