8000 skip command completion tests with older Symfony Console versions · symfony/symfony@b2d83cc · GitHub
[go: up one dir, main page]

Skip to content

Commit b2d83cc

Browse files
committed
skip command completion tests with older Symfony Console versions
1 parent 6386c0c commit b2d83cc

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Symfony/Bridge/Twig/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));

src/Symfony/Component/Yaml/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)
0