Total Complexity | 6 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | class RandomTest extends TestCase |
||
13 | { |
||
14 | /** |
||
15 | * @var Random |
||
16 | */ |
||
17 | protected $object; |
||
18 | protected $myClass = Random::class; |
||
19 | |||
20 | /** |
||
21 | * Sets up the fixture, for example, opens a network connection. |
||
22 | * This method is called before a test is executed. |
||
23 | */ |
||
24 | protected function setUp(): void |
||
25 | { |
||
26 | // $this->object = new Random(); |
||
27 | } |
||
28 | |||
29 | /** |
||
30 | * Tears down the fixture, for example, closes a network connection. |
||
31 | * This method is called after a test is executed. |
||
32 | */ |
||
33 | protected function tearDown(): void |
||
34 | { |
||
35 | } |
||
36 | |||
37 | public function testGenerateOneTimeToken() |
||
38 | { |
||
39 | try { |
||
40 | $result = Random::generateOneTimeToken(); |
||
41 | } catch (\Exception $e) { |
||
42 | } |
||
43 | |||
44 | $this->assertIsString($result); |
||
45 | $this->assertMatchesRegularExpression('/^[0-9a-f]{128}$/', $result); |
||
46 | } |
||
47 | |||
48 | public function testGenerateKey() |
||
57 | } |
||
58 | } |
||
59 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths