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