| Total Complexity | 4 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class AllTest extends TestCase |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @dataProvider providerAssert |
||
| 16 | */ |
||
| 17 | public function testAssert(array $input, bool $expected): void |
||
| 18 | { |
||
| 19 | $assertions = []; |
||
| 20 | foreach ($input as $value) { |
||
| 21 | $internalAssertion = $this->createMock(NamedAssertion::class); |
||
| 22 | $internalAssertion->expects(self::atMost(1)) |
||
| 23 | ->method('assert') |
||
| 24 | ->willReturn($value); |
||
| 25 | |||
| 26 | $assertions[] = $internalAssertion; |
||
| 27 | } |
||
| 28 | |||
| 29 | $assertion = new All(...$assertions); |
||
| 30 | |||
| 31 | $acl = $this->createMock(Acl::class); |
||
| 32 | self::assertSame($expected, $assertion->assert($acl)); |
||
| 33 | } |
||
| 34 | |||
| 35 | public function providerAssert(): array |
||
| 45 | ]; |
||
| 46 | } |
||
| 47 | |||
| 48 | public function testGetName(): void |
||
| 64 |
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