| Conditions | 1 |
| Paths | 1 |
| Total Lines | 17 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 23 | public function testGetClient() |
||
| 24 | { |
||
| 25 | $factory = $this->createMock(RedisFactoryInterface::class); |
||
| 26 | $cfg = $this->createMock(RedisPluginConfigurationInterface::class); |
||
| 27 | $cfg |
||
| 28 | ->expects($this->once()) |
||
| 29 | ->method('getClientConfiguration') |
||
| 30 | ->with('test') |
||
| 31 | ; |
||
| 32 | |||
| 33 | $redisManager = new RedisManager( |
||
| 34 | $factory, |
||
| 35 | $cfg, |
||
| 36 | ); |
||
| 37 | |||
| 38 | $redisManager->getClient('test'); |
||
| 39 | $redisManager->getClient('test'); |
||
| 40 | } |
||
| 42 |