geno/wp-content/plugins/mailpoet/vendor/mixpanel/mixpanel-php/test/MixpanelTest.php
2024-02-01 11:54:18 +00:00

20 lines
604 B
PHP

<?php
if (!defined('ABSPATH')) exit;
class MixpanelTest extends PHPUnit_Framework_TestCase {
protected $_instance = null;
protected function setUp() {
parent::setUp();
$this->_instance = Mixpanel::getInstance("token");
}
protected function tearDown() {
parent::tearDown();
$this->_instance->reset();
$this->_instance = null;
}
public function testGetInstance() {
$instance = Mixpanel::getInstance("token");
$this->assertInstanceOf("Mixpanel", $instance);
$this->assertEquals($this->_instance, $instance);
$this->assertInstanceOf("Producers_MixpanelPeople", $this->_instance->people);
}
}