[Process] Fix tests when pcntl is not available.
This commit is contained in:
parent
a292a489c5
commit
e40f24f0a9
@ -167,7 +167,7 @@ class SimpleProcessTest extends AbstractProcessTest
|
||||
$process = $this->getProcess('php -r "echo \'foo\'; sleep(1); echo \'bar\';"');
|
||||
$process->run(function () use ($process) {
|
||||
if ($process->isRunning()) {
|
||||
$process->signal(SIGKILL);
|
||||
$process->signal(defined('SIGKILL') ? SIGKILL : 9);
|
||||
}
|
||||
});
|
||||
} catch (RuntimeException $e) {
|
||||
@ -183,7 +183,7 @@ class SimpleProcessTest extends AbstractProcessTest
|
||||
$process = $this->getProcess('php -r "echo \'foo\'; sleep(1); echo \'bar\';"');
|
||||
$process->run(function () use ($process) {
|
||||
if ($process->isRunning()) {
|
||||
$process->signal(SIGTERM);
|
||||
$process->signal(defined('SIGTERM') ? SIGTERM : 15);
|
||||
}
|
||||
});
|
||||
} catch (RuntimeException $e) {
|
||||
|
Reference in New Issue
Block a user