Skip to content

Commit

Permalink
remove ClosureMiddleware usage in RouteTest
Browse files Browse the repository at this point in the history
  • Loading branch information
l0gicgate committed Mar 2, 2019
1 parent 5fb3b08 commit 312dfe4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/RouteTest.php
Expand Up @@ -502,11 +502,11 @@ public function testRouteCallableIsResolvedUsingContainerWhenCallableResolverIsP

$container = new MockContainer();
$container['CallableTest3'] = new CallableTest;
$container['ClosureMiddleware'] = new ClosureMiddleware(function ($request, $handler) use ($responseFactory) {
$container['ClosureMiddleware'] = function ($request, $handler) use ($responseFactory) {
$response = $responseFactory->createResponse();
$response->getBody()->write('Hello');
return $response;
});
};
$callableResolver = new CallableResolver($container);
$strategy = new InvocationStrategyTest();

Expand Down

0 comments on commit 312dfe4

Please sign in to comment.