public function unregister()
 {
     $this->_instance->register("prop7", "val7");
     $this->_instance->register("prop8", "val8");
     $this->assertEquals("val7", $this->_instance->getProperty("prop7"));
     $this->assertEquals("val8", $this->_instance->getProperty("prop8"));
     $this->_instance->unregister("prop7");
     $this->assertEquals(null, $this->_instance->getProperty("prop7"));
     $this->assertEquals("val8", $this->_instance->getProperty("prop8"));
 }
Beispiel #2
0
 /**
  * Register a property to be sent with every event.
  *
  * If the property has already been registered, it will be
  * overwritten. NOTE: Registered properties are only persisted for the life of the Mixpanel class instance.
  * @param string $property
  * @param mixed $value
  */
 public function register($property, $value)
 {
     $this->_events->register($property, $value);
 }