10000 [Console] Fix a test when pcntl is not available (following #48329) · HeahDude/symfony@8eb2e68 · GitHub
[go: up one dir, main page]

Skip to content

Commit 8eb2e68

Browse files
committed
[Console] Fix a test when pcntl is not available (following symfony#48329)
1 parent 48f0f63 commit 8eb2e68

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

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

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -509,12 +509,12 @@ public function testDontRunAlternativeNamespaceName()
509509
$tester = new ApplicationTester($application);
510510
$tester->run(['command' => 'foos:bar1'], ['decorated' => false]);
511511
$this->assertSame('
512-
513-
There are no commands defined in the "foos" namespace.
514-
515-
Did you mean this?
516-
foo
517-
512+
513+
There are no commands defined in the "foos" namespace.
514+
515+
Did you mean this?
516+
foo
517+
518518
519519
', $tester->getDisplay(true));
520520
}
@@ -1969,6 +1969,10 @@ public function testSetSignalsToDispatchEvent()
19691969

19701970
public function testSignalableCommandInterfaceWithoutSignals()
19711971
{
1972+
if (!\defined('SIGUSR1')) {
1973+
$this->markTestSkipped('SIGUSR1 not available');
1974+
}
1975+
19721976
$command = new SignableCommand(false);
19731977

19741978
$dispatcher = new EventDispatcher();

0 commit comments

Comments
 (0)
0