/**
* @param RequirementCheck[] $elements
* @param RequirementCheck[] $expected
*
* @dataProvider pathCheckProvider
*/
public function testGetPathChecks(array
$elements, array
$expected): void
{ $collection =
new RequirementsCheckCollection($elements);
static::
assertSame($expected,
array_values($collection->
getPathChecks()->
getElements()));
} public static function pathCheckProvider(): \Generator
{ $pathCheck =
new PathCheck('name', RequirementCheck::STATUS_SUCCESS
);
$systemCheck =
new SystemCheck('name', RequirementCheck::STATUS_SUCCESS, 'required', 'installed'
);
yield 'empty checks' =>
[ [],
[],
];