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

Commit ba80db2

Browse files
committed
Refactor NotFoundMiddlewareFactoryTest setup
- Adds property for `$response` - Alters order of operations in `setUp` for consistency
1 parent 5b0650f commit ba80db2

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/Container/NotFoundMiddlewareFactoryTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,13 @@ class NotFoundMiddlewareFactoryTest extends TestCase
2222
/** @var ContainerInterface|ObjectProphecy */
2323
private $container;
2424

25+
/** @var ResponseInterface|ObjectProphecy */
26+
private $response;
27+
2528
protected function setUp()
2629
{
27-
$this->container = $this->prophesize(ContainerInterface::class);
2830
$this->response = $this->prophesize(ResponseInterface::class)->reveal();
31+
$this->container = $this->prophesize(ContainerInterface::class);
2932
$this->container->get(ResponseInterface::class)->willReturn($this->response);
3033
}
3134

0 commit comments

Comments
 (0)