Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit 2f947e8

Browse files
committed
Updated RotueMatch#getParams calls to be expected in tests
1 parent 7925078 commit 2f947e8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/MiddlewareListenerTest.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ public function testSuccessfullyDispatchesPipeOfMiddleware()
118118
{
119119
$response = new Response();
120120
$routeMatch = $this->prophesize(RouteMatch::class);
121+
$routeMatch->getParams()->willReturn([]);
121122
$routeMatch->getParam('middleware', false)->willReturn([
122123
'firstMiddleware',
123124
'secondMiddleware',
@@ -245,6 +246,7 @@ public function testMiddlewareWithNothingPipedReachesFinalHandlerException()
245246
{
246247
$response = new Response();
247248
$routeMatch = $this->prophesize(RouteMatch::class);
249+
$routeMatch->getParams()->willReturn([]);
248250
$routeMatch->getParam('middleware', false)->willReturn([]);
249251

250252
$eventManager = new EventManager();

0 commit comments

Comments
 (0)