diff --git a/test/Middleware/ExceptionHandlerMiddlewareTest.php b/test/Middleware/ExceptionHandlerMiddlewareTest.php index 13d26c08..f9ca4f3a 100644 --- a/test/Middleware/ExceptionHandlerMiddlewareTest.php +++ b/test/Middleware/ExceptionHandlerMiddlewareTest.php @@ -38,7 +38,7 @@ public function testUncaughtException(): void $exceptionHandler = $this->createMock(ExceptionHandler::class); $exceptionHandler->expects(self::once()) ->method('handleException') - ->with($exception) + ->with(self::isInstanceOf(Request::class), $exception) ->willReturn(new Response(HttpStatus::INTERNAL_SERVER_ERROR)); $this->setupAndInvokeMiddleware($exceptionHandler, $exception);