Conditions | 1 |
Paths | 1 |
Total Lines | 12 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
26 | public function testClientAlias(): void |
||
27 | { |
||
28 | $config = ['sb_redis' => ['clients' => ['test' => []]]]; |
||
29 | |||
30 | $extension = new RedisExtension(); |
||
31 | $container = new ContainerBuilder(); |
||
32 | |||
33 | $this->assertFalse($container->has(ClientInterface::class)); |
||
34 | |||
35 | $extension->load($config, $container); |
||
36 | |||
37 | $this->assertTrue($container->has(ClientInterface::class)); |
||
38 | } |
||
47 |