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

Commit

Permalink
Refactor NotFoundMiddlewareFactoryTest setup
Browse files Browse the repository at this point in the history
- Adds property for `$response`
- Alters order of operations in `setUp` for consistency
  • Loading branch information
weierophinney committed Feb 6, 2018
1 parent 5b0650f commit ba80db2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/Container/NotFoundMiddlewareFactoryTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,13 @@ class NotFoundMiddlewareFactoryTest extends TestCase
/** @var ContainerInterface|ObjectProphecy */
private $container;

/** @var ResponseInterface|ObjectProphecy */
private $response;

protected function setUp()
{
$this->container = $this->prophesize(ContainerInterface::class);
$this->response = $this->prophesize(ResponseInterface::class)->reveal();
$this->container = $this->prophesize(ContainerInterface::class);
$this->container->get(ResponseInterface::class)->willReturn($this->response);
}

Expand Down

0 comments on commit ba80db2

Please sign in to comment.