8000 minor #43731 [TwigBridge][Yaml] skip command completion tests with ol… · symfony/symfony@ee53863 · GitHub
[go: up one dir, main page]

Skip to content
65F2

Commit ee53863

Browse files
committed
minor #43731 [TwigBridge][Yaml] skip command completion tests with older Symfony Console versions (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [TwigBridge][Yaml] skip command completion tests with older Symfony Console versions | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Tickets | | License | MIT | Doc PR | Commits ------- b2d83cc skip command completion tests with older Symfony Console versions
2 parents ed3660a + b2d83cc commit ee53863

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