public function testRegisterAllOnce() { $this->_instance->registerAllOnce(array("prop5" => "val5", "prop6" => "val6")); $this->_instance->registerAllOnce(array("prop5" => "val6", "prop6" => "val7")); $this->assertEquals("val5", $this->_instance->getProperty("prop5")); $this->assertEquals("val6", $this->_instance->getProperty("prop6")); }
/** * Register multiple properties to be sent with every event. * * If any of the properties have already been registered, * they will NOT be overwritten. NOTE: Registered properties are only persisted for the life of the Mixpanel class * instance. * @param array $props_and_vals */ public function registerAllOnce($props_and_vals = array()) { $this->_events->registerAllOnce($props_and_vals); }