/** * @api * * Prepares the clock to be unset, releases contained objects, * * @return Clock */ public function destroy() { $this->removeAllListeners(); $this->timers->clear(); $this->pulse->removeListener('tick', $this->pulseCallback); $this->timers = $this->pulse = $this->pulseCallback = null; }
public function testGetInstanceShouldReturnTheSamePulse() { $this->assertSame(Pulse::getInstance(), Pulse::getInstance()); }