Skip to content

Commit cdf6571

Browse files
committed
skip command completion tests with older Symfony Console versions
1 parent 0fd9ecf commit cdf6571

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Command/LintCommandTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ public function testLintAutodetectsGithubActionEnvironment()
141141
*/
142142
public function testComplete(array $input, array $expectedSuggestions)
143143
{
144+
if (!class_exists(CommandCompletionTester::class)) {
145+
$this->markTestSkipped('Test command completion requires symfony/console 5.4+.');
146+
}
147+
144148
$tester = new CommandCompletionTester($this->createCommand());
145149

146150
$this->assertSame($expectedSuggestions, $tester->complete($input));

0 commit comments

Comments
 (0)