public function isTimerActive(TimerInterface $timer) { return $this->getLoop()->isTimerActive($timer); }
/** * 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); }