];
} /**
* @dataProvider provideCheckCommandFixtures
*
* @param list<string> $expectedOutputSnippets
*/
public function testChangelogCheckCommand(string
$path, array
$expectedOutputSnippets): void
{ self::
getContainer()->
get(ChangelogValidator::
class)->
setPlatformRoot($path);
$cmd = self::
getContainer()->
get(ChangelogCheckCommand::
class);
$output =
new BufferedOutput();
$cmd->
run(new StringInput(''
),
$output);
$outputContents =
$output->
fetch();
foreach ($expectedOutputSnippets as $snippet) { static::
assertStringContainsString($snippet,
$outputContents);
} }