isTimerActive() public method

Checks if a timer created using addTimer() or addPeriodicTimer() is active. Proxies to the isTimerActive() implementation of the event loop implementation returned by getLoop().
public isTimerActive ( React\EventLoop\Timer\TimerInterface $timer ) : boolean
$timer React\EventLoop\Timer\TimerInterface Timer returned by addTimer() or addPeriodicTimer()
return boolean TRUE if the specified timer is active, FALSE otherwise
 /**
  * Tests isTimerActive().
  */
 public function testIsTimerActive()
 {
     $timer = $this->getMockTimer();
     $loop = $this->getMockLoop();
     Phake::when($this->client)->getLoop()->thenReturn($loop);
     $this->client->isTimerActive($timer);
     Phake::verify($loop)->isTimerActive($timer);
 }