zangra-dev /
bpost-api-library
| 1 | <?php |
||
| 2 | |||
| 3 | namespace Tests\Common\BasicAttribute; |
||
| 4 | |||
| 5 | use Bpost\BpostApiClient\BpostException; |
||
| 6 | use Bpost\BpostApiClient\Common\BasicAttribute\Language; |
||
| 7 | use Bpost\BpostApiClient\Exception\BpostLogicException\BpostInvalidValueException; |
||
| 8 | use PHPUnit_Framework_TestCase; |
||
|
0 ignored issues
–
show
|
|||
| 9 | |||
| 10 | class LanguageTest extends PHPUnit_Framework_TestCase |
||
| 11 | { |
||
| 12 | public function testValidate() |
||
| 13 | { |
||
| 14 | $value = 'FR'; |
||
| 15 | try { |
||
| 16 | $test = new Language($value); |
||
| 17 | $this->assertEquals($value, $test->getValue()); |
||
| 18 | } catch (BpostException $ex) { |
||
| 19 | $this->fail('Exception launched for valid value: "' . $value . '"'); |
||
| 20 | } |
||
| 21 | |||
| 22 | $value = 'ES'; |
||
| 23 | try { |
||
| 24 | new Language($value); |
||
| 25 | $this->fail('Exception uncaught for invalid value: "' . $value . '"'); |
||
| 26 | } catch (BpostInvalidValueException $ex) { |
||
| 27 | $this->assertTrue(true); |
||
| 28 | } |
||
| 29 | } |
||
| 30 | } |
||
| 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