Code Duplication    Length = 17-17 lines in 2 locations

Tests/EventListener/KernelEventListenerTest.php 2 locations

@@ 135-151 (lines=17) @@
132
     * @dataProvider configProvider
133
     * @param array $config
134
     */
135
    public function testNonMatchingAlternativeRouteReturnsFalse(array $config)
136
    {
137
        $request = Request::create('https://example.org/bar/');
138
139
        $event = new GetResponseForExceptionEvent(
140
            new TestHttpKernel(),
141
            $request,
142
            HttpKernelInterface::MASTER_REQUEST,
143
            new NotFoundHttpException('')
144
        );
145
146
        $listener = $this->getKernelEventListener($config);
147
148
        $returnValue = $listener->onKernelException($event);
149
150
        $this->assertFalse($returnValue);
151
    }
152
153
    /**
154
     * @dataProvider configProvider
@@ 157-173 (lines=17) @@
154
     * @dataProvider configProvider
155
     * @param array $config
156
     */
157
    public function testKernelRequestListenerDoesNothingForNonExistentRoute(array $config)
158
    {
159
        $request = Request::create('https://example.org/bar');
160
161
        $event = new GetResponseForExceptionEvent(
162
            new TestHttpKernel(),
163
            $request,
164
            HttpKernelInterface::MASTER_REQUEST,
165
            new NotFoundHttpException('')
166
        );
167
168
        $listener = $this->getKernelEventListener($config);
169
170
        $returnValue = $listener->onKernelException($event);
171
172
        $this->assertFalse($returnValue);
173
    }
174
175
    /**
176
     * @param array $config