Code Duplication    Length = 8-8 lines in 2 locations

test/unit/Middleware/RequestFactoryMiddlewareTest.php 1 location

@@ 28-35 (lines=8) @@
25
    /** @var RequestFactoryMiddleware */
26
    private $middleware;
27
28
    public function setUp()
29
    {
30
        $this->request = $this->mockRequest();
31
        $this->response = $this->mockResponse();
32
        $this->factory = $this->mockMessageFactory();
33
34
        $this->middleware = new RequestFactoryMiddleware($this->factory);
35
    }
36
37
    public function testApplyRequest()
38
    {

test/unit/Middleware/ResponseFactoryMiddlewareTest.php 1 location

@@ 19-26 (lines=8) @@
16
17
class ResponseFactoryMiddlewareTest extends UnitTestCase
18
{
19
    public function setUp()
20
    {
21
        $this->request = $this->mockRequest();
22
        $this->response = $this->mockResponse();
23
        $this->factory = $this->mockMessageFactory();
24
25
        $this->middleware = new ResponseFactoryMiddleware($this->factory);
26
    }
27
28
    public function testApplyRequest()
29
    {