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
 /**
  * Register multiple properties to be sent with every event.
  *
  * If any of the properties have already been registered,
  * they will be overwritten. NOTE: Registered properties are only persisted for the life of the Mixpanel class
  * instance.
  * @param array $props_and_vals
  */
 public function registerAll($props_and_vals = array())
 {
     $this->_events->registerAll($props_and_vals);
 }