Code Duplication    Length = 16-19 lines in 3 locations

tests/Unit/DependencyInjection/HttplugExtensionTest.php 3 locations

@@ 163-180 (lines=18) @@
160
    /**
161
     * @group legacy
162
     */
163
    public function testNoProfilingWhenToolbarIsDisabled()
164
    {
165
        $this->load(
166
            [
167
                'toolbar' => [
168
                    'enabled' => false,
169
                ],
170
                'clients' => [
171
                    'acme' => [
172
                        'factory' => 'httplug.factory.curl',
173
                        'plugins' => ['foo'],
174
                    ],
175
                ],
176
            ]
177
        );
178
179
        $this->verifyProfilingDisabled();
180
    }
181
182
    public function testNoProfilingWhenNotInDebugMode()
183
    {
@@ 182-197 (lines=16) @@
179
        $this->verifyProfilingDisabled();
180
    }
181
182
    public function testNoProfilingWhenNotInDebugMode()
183
    {
184
        $this->setParameter('kernel.debug', false);
185
        $this->load(
186
            [
187
                'clients' => [
188
                    'acme' => [
189
                        'factory' => 'httplug.factory.curl',
190
                        'plugins' => ['foo'],
191
                    ],
192
                ],
193
            ]
194
        );
195
196
        $this->verifyProfilingDisabled();
197
    }
198
199
    /**
200
     * @group legacy
@@ 202-220 (lines=19) @@
199
    /**
200
     * @group legacy
201
     */
202
    public function testProfilingWhenToolbarIsSpecificallyOn()
203
    {
204
        $this->setParameter('kernel.debug', false);
205
        $this->load(
206
            [
207
                'toolbar' => [
208
                    'enabled' => true,
209
                ],
210
                'clients' => [
211
                    'acme' => [
212
                        'factory' => 'httplug.factory.curl',
213
                        'plugins' => ['foo'],
214
                    ],
215
                ],
216
            ]
217
        );
218
219
        $this->assertContainerBuilderHasService(PluginClientFactoryListener::class);
220
    }
221
222
    public function testOverrideProfillingFormatter()
223
    {