_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); } }