Total Complexity | 2 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
15 | final class SymmetricKeyTest extends TestCase |
||
16 | { |
||
17 | /** |
||
18 | * Cover basic creation, retrieval and length computation. |
||
19 | */ |
||
20 | public function testCreation(): void |
||
21 | { |
||
22 | $k = new SymmetricKey('secret_key_material'); |
||
23 | $this->assertEquals('secret_key_material', $k->getMaterial()); |
||
24 | $this->assertEquals(19, $k->getLength()); |
||
25 | } |
||
26 | |||
27 | |||
28 | /** |
||
29 | * Cover random generation of secrets. |
||
30 | */ |
||
31 | public function testGeneration(): void |
||
38 | } |
||
39 | } |
||
40 |