/** * @override * @inheritDoc */ public function addTimer($interval, callable $callback) { return $this->loop->addTimer($interval, $callback); }
/** * @dataProvider loopsProvider * @param LoopExtendedInterface|LoopModelInterface|mixed $loop */ public function testApiIsTimerActive_ReturnsFalse_ForInActiveTimer($loop) { $timer = $loop->addTimer(0.001, $this->expectCallableNever()); $loop->cancelTimer($timer); $this->assertFalse($loop->isTimerActive($timer)); unset($timer); unset($loop); }