Skip to content

Commit

Permalink
Fix non-defined prophecy argument for the callable resolver
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansuter committed Dec 19, 2019
1 parent c853037 commit 2c2bc28
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/Routing/RouteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,11 @@ public function createRoute($methods = 'GET', string $pattern = '/', $callable =
$callableResolverProphecy
->resolve(Argument::is($callable))
->willReturn($callable);
$callableResolverProphecy
->resolve(MockMiddlewareWithoutConstructor::class)
->will(function ($args) {
return [new MockMiddlewareWithoutConstructor(), 'process'];
});

$streamProphecy = $this->prophesize(StreamInterface::class);

Expand Down

0 comments on commit 2c2bc28

Please sign in to comment.