| Total Complexity | 3 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 17 | class SplIntTest extends TestCase |
||
| 18 | { |
||
| 19 | |||
| 20 | public function test() |
||
| 21 | { |
||
| 22 | $test = new SplInt(); |
||
| 23 | $this->assertSame(0, (int) (string) $test); |
||
| 24 | |||
| 25 | $test = new SplInt(10); |
||
| 26 | $this->assertSame(10, (int) (string) $test); |
||
| 27 | |||
| 28 | $test = new SplInt(10, false); |
||
| 29 | $this->assertSame(10, (int) (string) $test); |
||
| 30 | } |
||
| 31 | |||
| 32 | public function test_unexpected_value_exception_float() |
||
| 33 | { |
||
| 34 | $this->expectException('\UnexpectedValueException'); |
||
| 35 | new \SplInt(10.0); |
||
| 36 | } |
||
| 37 | |||
| 38 | public function test_unexpected_value_exception_string() |
||
| 42 | } |
||
| 43 | |||
| 44 | } |
||
| 45 |
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