Example #1
0
 public function testFilterRemove()
 {
     //add
     $id = $this->_instances->addFilter("http://abc", false, "abc", "bound");
     $fDef = $this->_instances->getFilter();
     $this->assertCount(1, $fDef);
     $this->_instances->removeFilter($id);
     $fDefAfter = $this->_instances->getFilter();
     $this->assertEmpty($fDefAfter);
 }