Skip to content

Commit 40bca15

Browse files
committed
skip command completion tests with older Symfony Console versions
1 parent 4c7ce68 commit 40bca15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tests/Command/ServerDumpCommandTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ class ServerDumpCommandTest extends TestCase
1414
*/
1515
public function testComplete(array $input, array $expectedSuggestions)
1616
{
17+
if (!class_exists(CommandCompletionTester::class)) {
18+
$this->markTestSkipped('Test command completion requires symfony/console 5.4+.');
19+
}
20+
1721
$tester = new CommandCompletionTester($this->createCommand());
1822

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

0 commit comments

Comments
 (0)