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

@@ 242-250 (lines=9) @@
239
        );
240
    }
241
242
    protected function getKernelResponseEvent(Request $request, Response $response = null, $type = HttpKernelInterface::MASTER_REQUEST)
243
    {
244
        return new FilterResponseEvent(
245
            \Mockery::mock('\Symfony\Component\HttpKernel\HttpKernelInterface'),
246
            $request,
247
            $type,
248
            $response ?: new Response()
249
        );
250
    }
251
252
    /**
253
     * @param Request $request