public function unregisterAll()
 {
     $this->_instance->registerAll(array("prop9" => "val9", "prop10" => "val10"));
     $this->assertEquals("val9", $this->_instance->getProperty("prop9"));
     $this->assertEquals("val10", $this->_instance->getProperty("prop10"));
     $this->assertEquals("val11", $this->_instance->getProperty("prop11"));
     $this->_instance->unregisterAll(array("prop9", "prop10"));
     $this->assertEquals(null, $this->_instance->getProperty("prop9"));
     $this->assertEquals(null, $this->_instance->getProperty("prop10"));
     $this->assertEquals("val11", $this->_instance->getProperty("prop11"));
 }
Exemplo n.º 2
0
 /**
  * Un-register a list of properties to be sent with every event.
  * @param array $properties
  */
 public function unregisterAll($properties)
 {
     $this->_events->unregisterAll($properties);
 }