Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ee53863

Browse filesBrowse 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
Copy full SHA for ee53863

File tree

Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+8
-0
lines changed

‎src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php

Copy file name to clipboardExpand all lines: src/Symfony/Bridge/Twig/Tests/Command/LintCommandTest.php
+4Lines 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

Copy file name to clipboardExpand all lines: src/Symfony/Component/Yaml/Tests/Command/LintCommandTest.php
+4Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.