Exemplo n.º 1
0
 /**
  * Register a property to be sent with every event.
  *
  * If the property has already been registered, it will NOT be
  * overwritten. NOTE: Registered properties are only persisted for the life of the Mixpanel class instance.
  * @param $property
  * @param $value
  */
 public function registerOnce($property, $value)
 {
     $this->_events->registerOnce($property, $value);
 }
 public function testRegisterOnce()
 {
     $this->_instance->registerOnce("prop3", "val3");
     $this->_instance->registerOnce("prop3", "val4");
     $this->assertEquals("val3", $this->_instance->getProperty("prop3"));
 }