Conditions | 1 |
Paths | 1 |
Total Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
19 | public function handleDsnWithAuth(string $dsn) |
||
20 | { |
||
21 | $config = [ |
||
22 | 'dsn' => $dsn, |
||
23 | 'host' => 'localhost', |
||
24 | 'port' => 6379, |
||
25 | 'password' => null, |
||
26 | ]; |
||
27 | |||
28 | $collection = new RedisCollection(['default' => $config]); |
||
29 | $checks = $collection->getChecks(); |
||
30 | |||
31 | /** @var Redis $check */ |
||
32 | $check = $checks['redis_default']; |
||
33 | |||
34 | $this->assertAuthPropertyValue($check, self::AUTH); |
||
35 | } |
||
36 | |||
57 |