| Conditions | 1 |
| Paths | 1 |
| Total Lines | 22 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 50 | public function testCreateManyClients() |
||
| 51 | { |
||
| 52 | $config = [ |
||
| 53 | [ |
||
| 54 | 'clients' => [ |
||
| 55 | 'default' => [ |
||
| 56 | 'host' => '127.0.0.1', |
||
| 57 | 'port' => '9200', |
||
| 58 | ], |
||
| 59 | 'my_client' => [ |
||
| 60 | 'host' => '192.168.0.100', |
||
| 61 | 'port' => '9201', |
||
| 62 | ] |
||
| 63 | ] |
||
| 64 | ] |
||
| 65 | ]; |
||
| 66 | |||
| 67 | $this->extension->load($config, $this->container); |
||
| 68 | |||
| 69 | $this->assertTrue($this->container->has('elastica.default_client')); |
||
| 70 | $this->assertTrue($this->container->has('elastica.my_client_client')); |
||
| 71 | } |
||
| 72 | } |
||
| 73 |