AbstractPhpProcess
class AbstractPhpProcess (View source)
Utility methods for PHP sub-processes.
Properties
protected Runtime | $runtime | ||
protected bool | $stderrRedirection | ||
protected string | $stdin | ||
protected string | $args | ||
protected array |
$env | ||
protected int | $timeout |
Methods
Creates internal Runtime instance.
Defines if should use STDERR redirection or not.
Returns TRUE if uses STDERR redirection or FALSE if not.
Sets the input string to be sent via STDIN
Returns the input string to be sent via STDIN
Sets the string of arguments to pass to the php job
Returns the string of arguments to pass to the php job
Sets the array of environment variables to start the child process with
Returns the array of environment variables to start the child process with
Sets the amount of seconds to wait before timing out
Returns the amount of seconds to wait before timing out
No description
Runs a single test in a separate PHP process.
Returns the command based into the configurations.
Runs a single job (PHP code) using a separate PHP process.
No description
Details
at line 61
__construct()
Creates internal Runtime instance.
at line 75
setUseStderrRedirection(bool $stderrRedirection)
Defines if should use STDERR redirection or not.
Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.
at line 89
bool
useStderrRedirection()
Returns TRUE if uses STDERR redirection or FALSE if not.
at line 99
setStdin(string $stdin)
Sets the input string to be sent via STDIN
at line 109
string
getStdin()
Returns the input string to be sent via STDIN
at line 119
setArgs(string $args)
Sets the string of arguments to pass to the php job
at line 129
getArgs()
Returns the string of arguments to pass to the php job
at line 139
setEnv(array $env)
Sets the array of environment variables to start the child process with
at line 149
array
getEnv()
Returns the array of environment variables to start the child process with
at line 159
setTimeout(int $timeout)
Sets the amount of seconds to wait before timing out
at line 169
int
getTimeout()
Returns the amount of seconds to wait before timing out
at line 177
static AbstractPhpProcess
factory()
at line 195
runTestJob(string $job, Test $test, TestResult $result)
Runs a single test in a separate PHP process.
at line 217
string
getCommand(array $settings, string|null $file = null)
Returns the command based into the configurations.
at line 255
abstract array
runJob(string $job, array $settings = [])
Runs a single job (PHP code) using a separate PHP process.