Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2ad8bb1

Browse files
committed
[Console] Fix a test when pcntl is not available
1 parent bb6e4da commit 2ad8bb1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Symfony/Component/Console/Tests/ApplicationTest.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2036,6 +2036,10 @@ public function testSignalableCommandHandlerCalledAfterEventListener()
20362036

20372037
public function testSignalableCommandDoesNotInterruptedOnTermSignals()
20382038
{
2039+
if (!\defined('SIGINT')) {
2040+
$this->markTestSkipped('SIGINT not available');
2041+
}
2042+
20392043
$command = new TerminatableCommand(true, \SIGINT);
20402044
$command->exitCode = 129;
20412045

0 commit comments

Comments
 (0)