| Total Complexity | 1 |
| Total Lines | 15 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 14 | class RedisTest extends CommonTestClass |
||
| 15 | { |
||
| 16 | /** |
||
| 17 | * @throws UploadException |
||
| 18 | */ |
||
| 19 | public function testThru(): void |
||
| 20 | { |
||
| 21 | $lang = new Translations(); |
||
| 22 | $target = new TargetSearch(new Support\InfoRam($lang), new Support\DataRam($lang), $lang); |
||
| 23 | $target->setRemoteFileName('poiuztrewq')->setTargetDir($this->getTestDir())->process(); |
||
| 24 | $lib = new Keys\Redis($target, $lang); |
||
| 25 | $lib->generateKeys(); |
||
| 26 | |||
| 27 | $this->assertEquals(md5('poiuztrewq'), $lib->getSharedKey()); |
||
| 28 | $this->assertEquals(Keys\Redis::PREFIX . 'lkjhg', $lib->fromSharedKey('lkjhg')); |
||
| 29 | } |
||
| 31 |