Skip to content

Commit 67e9009

Browse files
minor symfony#58783 [Console] skip autocomplete test when stty is not available (xabbuh)
This PR was merged into the 5.4 branch. Discussion ---------- [Console] skip autocomplete test when stty is not available | Q | A | ------------- | --- | Branch? | 5.4 | Bug fix? | no | New feature? | no | Deprecations? | no | Issues | | License | MIT Commits ------- 86795d4 skip autocomplete test when stty is not available
2 parents 7fc0b9e + 86795d4 commit 67e9009

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -914,6 +914,10 @@ public function testTraversableMultiselectAutocomplete()
914914

915915
public function testAutocompleteMoveCursorBackwards()
916916
{
917+
if (!Terminal::hasSttyAvailable()) {
918+
$this->markTestSkipped('`stty` is required to test autocomplete functionality');
919+
}
920+
917921
// F<TAB><BACKSPACE><BACKSPACE><BACKSPACE>
918922
$inputStream = $this->getInputStream("F\t\177\177\177");
919923

0 commit comments

Comments
 (0)