Code Duplication    Length = 9-9 lines in 2 locations

Tests/Unit/EventListener/TagListenerTest.php 1 location

@@ 127-135 (lines=9) @@
124
        $this->listener->onKernelResponse($event);
125
    }
126
127
    protected function getEvent(Request $request, Response $response = null)
128
    {
129
        return new FilterResponseEvent(
130
            \Mockery::mock('\Symfony\Component\HttpKernel\HttpKernelInterface'),
131
            $request,
132
            HttpKernelInterface::MASTER_REQUEST,
133
            $response ?: new Response()
134
        );
135
    }
136
}
137

Tests/Unit/EventListener/UserContextListenerTest.php 1 location

@@ 276-284 (lines=9) @@
273
        );
274
    }
275
276
    protected function getKernelResponseEvent(Request $request, Response $response = null, $type = HttpKernelInterface::MASTER_REQUEST)
277
    {
278
        return new FilterResponseEvent(
279
            \Mockery::mock('\Symfony\Component\HttpKernel\HttpKernelInterface'),
280
            $request,
281
            $type,
282
            $response ?: new Response()
283
        );
284
    }
285
286
    /**
287
     * @param Request $request