Total Complexity | 3 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | #[CoversClass(DurationValue::class)] |
||
19 | final class DurationValueTest extends TestCase |
||
20 | { |
||
21 | /** |
||
22 | * @param boolean $shouldPass |
||
23 | * @param string $duration |
||
24 | */ |
||
25 | #[DataProvider('provideDuration')] |
||
26 | public function testQName(bool $shouldPass, string $duration): void |
||
27 | { |
||
28 | try { |
||
29 | DurationValue::fromString($duration); |
||
30 | $this->assertTrue($shouldPass); |
||
31 | } catch (SchemaViolationException $e) { |
||
32 | $this->assertFalse($shouldPass); |
||
33 | } |
||
34 | } |
||
35 | |||
36 | |||
37 | /** |
||
38 | * @return array<int, array{0: bool, 1: string}> |
||
39 | */ |
||
40 | public static function provideDuration(): array |
||
64 | ]; |
||
65 | } |
||
67 |
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