Skip to content

Commit 515d490

Browse files
committed
Exclude some tests on Windows too
1 parent 71d434c commit 515d490

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

tests/AppBundle/Command/AddUserCommandTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,13 @@ class AddUserCommandTest extends KernelTestCase
2828

2929
protected function setUp()
3030
{
31-
// check if stty is supported, because it's needed for questions with hidden answers
3231
exec('stty 2>&1', $output, $exitcode);
32+
$isSttySupported = 0 === $exitcode;
3333

34-
if (0 !== $exitcode) {
35-
$this->markTestSkipped('`stty` is required to test commands.');
34+
$isWindows = '\\' === DIRECTORY_SEPARATOR;
35+
36+
if ($isWindows || !$isSttySupported) {
37+
$this->markTestSkipped('`stty` is required to test this command.');
3638
}
3739
}
3840

0 commit comments

Comments
 (0)