public function __construct(Pulse $pulse = null) { $this->timers = new Timers($this); $this->pulse = $pulse ?: Pulse::getInstance(); $this->pulseCallback = array($this, 'tick'); $this->pulse->on('tick', $this->pulseCallback); }
public function testGetInstanceShouldReturnTheSamePulse() { $this->assertSame(Pulse::getInstance(), Pulse::getInstance()); }