You are here

protected function SigchildDisabledProcessTest::getProcess in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/process/Tests/SigchildDisabledProcessTest.php \Symfony\Component\Process\Tests\SigchildDisabledProcessTest::getProcess()

Parameters

string $commandline:

null|string $cwd:

null|array $env:

null|string $input:

int $timeout:

array $options:

Return value

Process

Overrides AbstractProcessTest::getProcess

1 call to SigchildDisabledProcessTest::getProcess()
SigchildDisabledProcessTest::testExitCodeText in vendor/symfony/process/Tests/SigchildDisabledProcessTest.php
@expectedException \Symfony\Component\Process\Exception\RuntimeException @expectedExceptionMessage This PHP has been compiled with --enable-sigchild. You must use setEnhanceSigchildCompatibility() to use this method.

File

vendor/symfony/process/Tests/SigchildDisabledProcessTest.php, line 256

Class

SigchildDisabledProcessTest

Namespace

Symfony\Component\Process\Tests

Code

protected function getProcess($commandline, $cwd = null, array $env = null, $input = null, $timeout = 60, array $options = array()) {
  $process = new ProcessInSigchildEnvironment($commandline, $cwd, $env, $input, $timeout, $options);
  $process
    ->setEnhanceSigchildCompatibility(false);
  return $process;
}