We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71d434c commit 515d490Copy full SHA for 515d490
tests/AppBundle/Command/AddUserCommandTest.php
@@ -28,11 +28,13 @@ class AddUserCommandTest extends KernelTestCase
28
29
protected function setUp()
30
{
31
- // check if stty is supported, because it's needed for questions with hidden answers
32
exec('stty 2>&1', $output, $exitcode);
+ $isSttySupported = 0 === $exitcode;
33
34
- if (0 !== $exitcode) {
35
- $this->markTestSkipped('`stty` is required to test commands.');
+ $isWindows = '\\' === DIRECTORY_SEPARATOR;
+
36
+ if ($isWindows || !$isSttySupported) {
37
+ $this->markTestSkipped('`stty` is required to test this command.');
38
}
39
40
0 commit comments