Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 8 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
32 | public function getType(): void |
||
33 | { |
||
34 | $expectedTypesToVars = [ |
||
35 | 'string' => 'string', |
||
36 | 'float' => 1.01, |
||
37 | 'int' => 2, |
||
38 | 'bool' => true, |
||
39 | 'null' => null, |
||
40 | ]; |
||
41 | foreach ($expectedTypesToVars as $expected => $var) { |
||
42 | self::assertSame($expected, $this->helper->getType($var)); |
||
43 | } |
||
87 |