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
 /**
  * Get a property that is set to be sent with every event
  * @param string $property
  * @return mixed
  */
 public function getProperty($property)
 {
     return $this->_events->getProperty($property);
 }