Code Duplication    Length = 11-13 lines in 2 locations

Tests/DependencyInjection/ConfigurationTest.php 2 locations

@@ 110-120 (lines=11) @@
107
        $this->assertEquals('custom.service', $configuration['clients']['logging_custom']['connections'][0]['logger']);
108
    }
109
110
    public function testSlashIsAddedAtTheEndOfServerUrl()
111
    {
112
        $config = array(
113
            'clients' => array(
114
                'default' => array('url' => 'http://www.github.com'),
115
            ),
116
        );
117
        $configuration = $this->getConfigs($config);
118
119
        $this->assertEquals('http://www.github.com/', $configuration['clients']['default']['connections'][0]['url']);
120
    }
121
122
    public function testTypeConfig()
123
    {
@@ 168-180 (lines=13) @@
165
        ));
166
    }
167
168
    public function testClientConfigurationNoUrl()
169
    {
170
        $configuration = $this->getConfigs(array(
171
            'clients' => array(
172
                'default' => array(
173
                    'host' => 'localhost',
174
                    'port' => 9200,
175
                ),
176
            ),
177
        ));
178
179
        $this->assertTrue(empty($configuration['clients']['default']['connections'][0]['url']));
180
    }
181
182
    public function testMappingsRenamedToProperties()
183
    {