assertSame(0, $calls, 'no refresh before the interval has passed'); } public function testRefreshesEveryCallWithZeroInterval(): void { $calls = 0; $beat = LeaseService::throttled(function () use (&$calls): void { $calls++; }, 0); for ($i = 0; $i < 5; $i++) { $beat(); } $this->assertSame(5, $calls); } }