Skip to content

Commit

Permalink
skip autocomplete test when stty is not available
Browse files Browse the repository at this point in the history
  • Loading branch information
xabbuh committed Nov 6, 2024
1 parent fb0d476 commit c4ba980
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Tests/Helper/QuestionHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -914,6 +914,10 @@ public function testTraversableMultiselectAutocomplete()

public function testAutocompleteMoveCursorBackwards()
{
if (!Terminal::hasSttyAvailable()) {
$this->markTestSkipped('`stty` is required to test autocomplete functionality');
}

// F<TAB><BACKSPACE><BACKSPACE><BACKSPACE>
$inputStream = $this->getInputStream("F\t\177\177\177");

Expand Down

0 comments on commit c4ba980

Please sign in to comment.