diff --git a/test/MiddlewareListenerTest.php b/test/MiddlewareListenerTest.php index 431dde4dd..c55c82507 100644 --- a/test/MiddlewareListenerTest.php +++ b/test/MiddlewareListenerTest.php @@ -118,6 +118,7 @@ public function testSuccessfullyDispatchesPipeOfMiddleware() { $response = new Response(); $routeMatch = $this->prophesize(RouteMatch::class); + $routeMatch->getParams()->willReturn([]); $routeMatch->getParam('middleware', false)->willReturn([ 'firstMiddleware', 'secondMiddleware', @@ -245,6 +246,7 @@ public function testMiddlewareWithNothingPipedReachesFinalHandlerException() { $response = new Response(); $routeMatch = $this->prophesize(RouteMatch::class); + $routeMatch->getParams()->willReturn([]); $routeMatch->getParam('middleware', false)->willReturn([]); $eventManager = new EventManager();