Code Duplication    Length = 11-13 lines in 2 locations

Tests/DependencyInjection/ConfigurationTest.php 2 locations

@@ 165-175 (lines=11) @@
162
        $this->assertSame('custom.service', $configuration['clients']['logging_custom']['connections'][0]['logger']);
163
    }
164
165
    public function testSlashIsAddedAtTheEndOfServerUrl()
166
    {
167
        $config = [
168
            'clients' => [
169
                'default' => ['url' => 'http://www.github.com'],
170
            ],
171
        ];
172
        $configuration = $this->getConfigs($config);
173
174
        $this->assertSame('http://www.github.com/', $configuration['clients']['default']['connections'][0]['url']);
175
    }
176
177
    public function testTypeConfig()
178
    {
@@ 223-235 (lines=13) @@
220
        ]);
221
    }
222
223
    public function testClientConfigurationNoUrl()
224
    {
225
        $configuration = $this->getConfigs([
226
            'clients' => [
227
                'default' => [
228
                    'host' => 'localhost',
229
                    'port' => 9200,
230
                ],
231
            ],
232
        ]);
233
234
        $this->assertTrue(empty($configuration['clients']['default']['connections'][0]['url']));
235
    }
236
237
    public function testUnconfiguredType()
238
    {