Skip to content

Commit c55bc64

Browse files
committed
skip command completion tests with older Symfony Console versions
1 parent ac32825 commit c55bc64

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
@@ -170,6 +170,10 @@ public function testLintFileNotReadable()
170170
*/
171171
public function testComplete(array $input, array $expectedSuggestions)
172172
{
173+
if (!class_exists(CommandCompletionTester::class)) {
174+
$this->markTestSkipped('Test command completion requires symfony/console 5.4+.');
175+
}
176+
173177
$tester = new CommandCompletionTester($this->createCommand());
174178

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

0 commit comments

Comments
 (0)