Esempio n. 1
0
 public function testRealSyncToMixpanel()
 {
     $message = "Set env variable MIXPANEL_TOKEN to test with real transactions";
     $this->skipIf(!$this->mixpanelConfiguration['token'], $message);
     $mixpanel = new Mixpanel();
     $configuration = $mixpanel->configure($this->mixpanelConfiguration);
     $options = array('ip' => 1, 'test' => 1);
     $result = $mixpanel->track('test', $options);
     $this->assertTrue($result);
     $result = $mixpanel->transaction(1, 1.6);
     $this->assertTrue($result);
 }
Esempio n. 2
0
<?php

use li3_mixpanel\core\Mixpanel;
use lithium\core\Libraries;
Mixpanel::configure(Libraries::get('li3_mixpanel'));