Skip to content

Commit 38bbe02

Browse files
committed
minor #42233 [Console] mark as skip test testTraversableMultiselectAutocomplete for Windows (a1812)
This PR was merged into the 4.4 branch. Discussion ---------- [Console] mark as skip test testTraversableMultiselectAutocomplete for Windows | Q | A | ------------- | --- | Branch? | 4.4 | Bug fix? | no | New feature? |no | Deprecations? | no | Tickets | Fix #... | License | MIT | Doc PR | I think that in tests we need to adhere to one style, if we skip tests with "stty", then this one needs to be skipped or unchecked from all the others. ```cmd C:\symfony>C:\php\7.1.3\php.exe C:\symfony\phpunit --color=never --bootstrap C:\symfony\vendor\autoload.php --configuration C:\symfony\phpunit.xml.dist src/Symfony/Component/Console/Tests/Helper/QuestionHelperTest.php #!/usr/bin/env php PHPUnit 7.5.20 by Sebastian Bergmann and contributors. Testing Symfony\Component\Console\Tests\Helper\QuestionHelperTest ....SSSSSSSSSSSS..................................SSF 53 / 53 (100%) Time: 912 ms, Memory: 8.00 MB There was 1 failure: 1) Symfony\Component\Console\Tests\Helper\QuestionHelperTest::testTraversableMultiselectAutocomplete Failed asserting that two arrays are equal. --- Expected +++ Actual @@ @@ Array ( - 0 => 'FooBundle' + 0 => 'AcmeDemoBundle' + 1 => 'AsseticBundle' ) C:\symfony\src\Symfony\Component\Console\Tests\Helper\QuestionHelperTest.php:864 FAILURES! Tests: 53, Assertions: 72, Failures: 1, Skipped: 14. ` Commits ------- 6272c4b skip test
2 parents a5752e0 + 6272c4b commit 38bbe02

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
@@ -835,6 +835,10 @@ public function testDisableStty()
835835

836836
public function testTraversableMultiselectAutocomplete()
837837
{
838+
if (!Terminal::hasSttyAvailable()) {
839+
$this->markTestSkipped('`stty` is required to test autocomplete functionality');
840+
}
841+
838842
// <NEWLINE>
839843
// F<TAB><NEWLINE>
840844
// A<3x UP ARROW><TAB>,F<TAB><NEWLINE>

0 commit comments

Comments
 (0)