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