Exemple #1
0
 /**
  * @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;
 }
Exemple #2
0
 public function testGetInstanceShouldReturnTheSamePulse()
 {
     $this->assertSame(Pulse::getInstance(), Pulse::getInstance());
 }