Total Complexity | 4 |
Total Lines | 45 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
17 | class SplBoolTest extends TestCase |
||
18 | { |
||
19 | public function test() |
||
20 | { |
||
21 | $test = new SplBool(); |
||
22 | $this->assertFalse((bool) (string) $test); |
||
23 | unset($test); |
||
24 | |||
25 | $test = new SplBool(true); |
||
26 | $this->assertTrue((bool) (string) $test); |
||
27 | unset($test); |
||
28 | |||
29 | $test = new SplBool(1, false); |
||
30 | $this->assertTrue((bool) (string) $test); |
||
31 | unset($test); |
||
32 | } |
||
33 | |||
34 | public function test_unexpected_value_exception_int() |
||
35 | { |
||
36 | $this->expectException('\UnexpectedValueException'); |
||
37 | new SplBool(0); |
||
38 | } |
||
39 | |||
40 | public function test_unexpected_value_exception_string() |
||
44 | } |
||
45 | |||
46 | public function test_list() |
||
62 | } |
||
63 | } |
||
64 |
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