public function testApiIsActive_CallsMethodOnModel() { $timer = $this->createTimer(1, function () { }); $bool = true; $this->prophecy->isTimerActive($timer)->willReturn($bool)->shouldBeCalledTimes(1); $this->assertSame($bool, $timer->isActive()); }