Conditions | 3 |
Paths | 9 |
Total Lines | 16 |
Code Lines | 12 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php |
||
12 | public function testValidate() |
||
13 | { |
||
14 | $value = str_repeat('a', 20); |
||
15 | try { |
||
16 | $test = new PhoneNumber($value); |
||
17 | $this->assertEquals($value, $test->getValue()); |
||
18 | } catch (BpostException $ex) { |
||
19 | $this->fail('Exception launched for valid value: "' . $value . '"'); |
||
20 | } |
||
21 | |||
22 | $value = str_repeat('a', 21); |
||
23 | try { |
||
24 | new PhoneNumber($value); |
||
25 | $this->fail('Exception uncaught for invalid value: "' . $value . '"'); |
||
26 | } catch (BpostInvalidLengthException $ex) { |
||
27 | $this->assertTrue(true); |
||
28 | } |
||
31 |
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