Total Complexity | 3 |
Total Lines | 21 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
8 | class UtilsTest extends TestCase |
||
9 | { |
||
10 | public function testKeypairGeneration() |
||
11 | { |
||
12 | $keypair = Utils::generateKeypair(); |
||
13 | $this->assertEquals(32, \strlen($keypair['public'])); |
||
14 | $this->assertEquals(32, \strlen($keypair['secret'])); |
||
15 | } |
||
16 | |||
17 | public function testSigningKeypairGeneration() |
||
22 | } |
||
23 | |||
24 | public function testZero() |
||
31 |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.