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

Commit

Permalink
Updated RotueMatch#getParams calls to be expected in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
asgrim committed Feb 19, 2017
1 parent 7925078 commit 2f947e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/MiddlewareListenerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2f947e8

Please sign in to comment.