|
Lggr
|

Public Member Functions | |
| __construct () | |
| setUseStderrRedirection ($stderrRedirection) | |
| useStderrRedirection () | |
| setStdin ($stdin) | |
| getStdin () | |
| setArgs ($args) | |
| getArgs () | |
| setEnv (array $env) | |
| getEnv () | |
| setTimeout ($timeout) | |
| getTimeout () | |
| runTestJob ($job, Test $test, TestResult $result) | |
| getCommand (array $settings, $file=null) | |
| runJob ($job, array $settings=[]) | |
Static Public Member Functions | |
| static | factory () |
Protected Member Functions | |
| settingsToParameters (array $settings) | |
Protected Attributes | |
| $runtime | |
| $stderrRedirection = false | |
| $stdin = '' | |
| $args = '' | |
| $env = [] | |
| $timeout = 0 | |
Utility methods for PHP sub-processes.
| PHPUnit\Util\PHP\AbstractPhpProcess::__construct | ( | ) |
Creates internal Runtime instance.
|
static |
| PHPUnit\Util\PHP\AbstractPhpProcess::getArgs | ( | ) |
Returns the string of arguments to pass to the php job
@retrun string
| PHPUnit\Util\PHP\AbstractPhpProcess::getCommand | ( | array | $settings, |
$file = null |
|||
| ) |
Returns the command based into the configurations.
| array | $settings | |
| string | null | $file |
Reimplemented in PHPUnit\Util\PHP\WindowsPhpProcess.
| PHPUnit\Util\PHP\AbstractPhpProcess::getEnv | ( | ) |
Returns the array of environment variables to start the child process with
| PHPUnit\Util\PHP\AbstractPhpProcess::getStdin | ( | ) |
Returns the input string to be sent via STDIN
| PHPUnit\Util\PHP\AbstractPhpProcess::getTimeout | ( | ) |
Returns the amount of seconds to wait before timing out
|
abstract |
Runs a single job (PHP code) using a separate PHP process.
| string | $job | |
| array | $settings |
| Exception |
Reimplemented in PHPUnit\Util\PHP\DefaultPhpProcess.
| PHPUnit\Util\PHP\AbstractPhpProcess::runTestJob | ( | $job, | |
| Test | $test, | ||
| TestResult | $result | ||
| ) |
| PHPUnit\Util\PHP\AbstractPhpProcess::setArgs | ( | $args | ) |
Sets the string of arguments to pass to the php job
| string | $args |
| PHPUnit\Util\PHP\AbstractPhpProcess::setEnv | ( | array | $env | ) |
Sets the array of environment variables to start the child process with
| array<string,string> | $env |
| PHPUnit\Util\PHP\AbstractPhpProcess::setStdin | ( | $stdin | ) |
Sets the input string to be sent via STDIN
| string | $stdin |
| PHPUnit\Util\PHP\AbstractPhpProcess::setTimeout | ( | $timeout | ) |
Sets the amount of seconds to wait before timing out
| int | $timeout |
|
protected |
| array | $settings |
| PHPUnit\Util\PHP\AbstractPhpProcess::setUseStderrRedirection | ( | $stderrRedirection | ) |
Defines if should use STDERR redirection or not.
Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.
| Exception |
| bool | $stderrRedirection |
| PHPUnit\Util\PHP\AbstractPhpProcess::useStderrRedirection | ( | ) |
Returns TRUE if uses STDERR redirection or FALSE if not.
1.8.17