Skip to content

Commit

Permalink
Remove PHPUnit mocks
Browse files Browse the repository at this point in the history
  • Loading branch information
mnapoli committed Aug 10, 2019
1 parent 3d20d5f commit 5cd23e0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions tests/Factory/AppFactoryTest.php
Expand Up @@ -241,13 +241,14 @@ public function testCreateAppWithEmptyContainer()

public function testCreateAppWithContainerThatProvidesAllImplementations()
{
$responseFactory = $this->createMock(ResponseFactoryInterface::class);
$callableResolver = $this->createMock(CallableResolverInterface::class);
$routeParser = $this->createMock(RouteParserInterface::class);
$routeCollector = $this->createConfiguredMock(RouteCollectorInterface::class, [
'getRouteParser' => $routeParser
]);
$routeResolver = $this->createMock(RouteResolverInterface::class);
$responseFactory = $this->prophesize(ResponseFactoryInterface::class)->reveal();
$callableResolver = $this->prophesize(CallableResolverInterface::class)->reveal();
$routeParser = $this->prophesize(RouteParserInterface::class)->reveal();
$routeCollectorProphecy = $this->prophesize(RouteCollectorInterface::class);
$routeCollectorProphecy->getRouteParser()
->willReturn($routeParser);
$routeCollector = $routeCollectorProphecy->reveal();
$routeResolver = $this->prophesize(RouteResolverInterface::class)->reveal();

$container = new MockContainer([
ResponseFactoryInterface::class => $responseFactory,
Expand Down

0 comments on commit 5cd23e0

Please sign in to comment.