Code Duplication    Length = 9-9 lines in 2 locations

Tests/Unit/EventListener/TagSubscriberTest.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/UserContextSubscriberTest.php 1 location

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