public function testApiCancel_CallsMethodOnModel() { $timer = $this->createTimer(1, function () { }); $this->prophecy->cancelTimer($timer)->shouldBeCalledTimes(1); $timer->cancel(); }