コード例 #1
0
ファイル: Clock.php プロジェクト: romainneutron/Tip-Top
 /**
  * @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;
 }
コード例 #2
0
ファイル: PulseTest.php プロジェクト: romainneutron/Tip-Top
 public function testGetInstanceShouldReturnTheSamePulse()
 {
     $this->assertSame(Pulse::getInstance(), Pulse::getInstance());
 }