Total Complexity | 4 |
Total Lines | 55 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
8 | class UtilityTest extends \PHPUnit_Framework_TestCase |
||
|
|||
9 | { |
||
10 | public function setUp() |
||
16 | } |
||
17 | |||
18 | public function testIsValidLocale() |
||
19 | { |
||
20 | $m = $this->method; |
||
21 | $t = $this->tr; |
||
22 | |||
23 | $booleanAssertions = [ |
||
24 | 'ab' => true, |
||
25 | 'ab-CD' => true, |
||
26 | 'ab-CDE' => false, |
||
27 | 'abc-DE' => false, |
||
28 | 'abc-DEF' => false, |
||
29 | 'abc' => false, |
||
30 | 'ab-' => false, |
||
31 | 'a' => false, |
||
32 | ]; |
||
33 | |||
34 | foreach ($booleanAssertions as $key => $value) { |
||
35 | $this->assertEquals($m->invokeArgs($t, [$key]), $value); |
||
36 | } |
||
37 | } |
||
38 | |||
39 | public function testSetHttpOption() |
||
63 | } |
||
64 | } |
||
65 |
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