| Conditions | 4 |
| Paths | 27 |
| Total Lines | 24 |
| Code Lines | 18 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | public function testValidate() |
||
| 14 | { |
||
| 15 | $value = '[email protected]'; |
||
| 16 | try { |
||
| 17 | $test = new EmailAddressCharacteristic($value); |
||
| 18 | $this->assertEquals($value, $test->getValue()); |
||
| 19 | } catch (BpostException $ex) { |
||
| 20 | $this->fail('Exception launched for valid value: "' . $value . '"'); |
||
| 21 | } |
||
| 22 | |||
| 23 | $value = 'myBeautifulAndLongEmailAddressFor2016@antidot-company-based-at-Brussels.com'; |
||
| 24 | try { |
||
| 25 | new EmailAddressCharacteristic($value); |
||
| 26 | $this->fail('Exception uncaught for invalid value: "' . $value . '"'); |
||
| 27 | } catch (BpostInvalidLengthException $ex) { |
||
| 28 | $this->assertTrue(true); |
||
| 29 | } |
||
| 30 | |||
| 31 | $value = '[email protected]'; |
||
| 32 | try { |
||
| 33 | new EmailAddressCharacteristic($value); |
||
| 34 | $this->fail('Exception uncaught for invalid value: "' . $value . '"'); |
||
| 35 | } catch (BpostInvalidPatternException $ex) { |
||
| 36 | $this->assertTrue(true); |
||
| 37 | } |
||
| 40 |
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