calls; $this->call = ++self::$staticCalls; return $next($request); } public function assertCalled(): void { Assert::assertGreaterThan(0, $this->calls); } public function assertCallNumber(int $num): void { Assert::assertSame($num, $this->call); } }