public function cancelTimer(TimerInterface $timer) { $this->getLoop()->cancelTimer($timer); }
/** * Tests cancelTimer(). */ public function testCancelTimer() { $timer = $this->getMockTimer(); $loop = $this->getMockLoop(); Phake::when($this->client)->getLoop()->thenReturn($loop); $this->client->cancelTimer($timer); Phake::verify($loop)->cancelTimer($timer); }