WindowsPhpProcess
class WindowsPhpProcess extends DefaultPhpProcess (View source)
Windows utility for PHP sub-processes.
Reading from STDOUT or STDERR hangs forever on Windows if the output is too large.
Properties
protected Runtime | $runtime | from AbstractPhpProcess | |
protected bool | $stderrRedirection | from AbstractPhpProcess | |
protected string | $stdin | from AbstractPhpProcess | |
protected string | $args | from AbstractPhpProcess | |
protected array |
$env | from AbstractPhpProcess | |
protected int | $timeout | from AbstractPhpProcess | |
protected string | $tempFile | from DefaultPhpProcess | |
protected | $useTempFile |
Methods
Defines if should use STDERR redirection or not.
Returns TRUE if uses STDERR redirection or FALSE if not.
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
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.
Returns an array of file handles to be used in place of pipes
Handles creating the child process and returning the STDOUT and STDERR
Details
in AbstractPhpProcess at line 61
__construct()
Creates internal Runtime instance.
in AbstractPhpProcess at line 75
setUseStderrRedirection(bool $stderrRedirection)
Defines if should use STDERR redirection or not.
Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.
in AbstractPhpProcess at line 89
bool
useStderrRedirection()
Returns TRUE if uses STDERR redirection or FALSE if not.
in AbstractPhpProcess at line 99
setStdin(string $stdin)
Sets the input string to be sent via STDIN
in AbstractPhpProcess at line 109
string
getStdin()
Returns the input string to be sent via STDIN
in AbstractPhpProcess at line 119
setArgs(string $args)
Sets the string of arguments to pass to the php job
in AbstractPhpProcess at line 129
getArgs()
Returns the string of arguments to pass to the php job
in AbstractPhpProcess at line 139
setEnv(array $env)
Sets the array of environment variables to start the child process with
in AbstractPhpProcess at line 149
array
getEnv()
Returns the array of environment variables to start the child process with
in AbstractPhpProcess at line 159
setTimeout(int $timeout)
Sets the amount of seconds to wait before timing out
in AbstractPhpProcess at line 169
int
getTimeout()
Returns the amount of seconds to wait before timing out
in AbstractPhpProcess at line 177
static AbstractPhpProcess
factory()
in AbstractPhpProcess at line 195
runTestJob(string $job, Test $test, TestResult $result)
Runs a single test in a separate PHP process.
at line 39
string
getCommand(array $settings, string|null $file = null)
Returns the command based into the configurations.
in DefaultPhpProcess at line 39
array
runJob(string $job, array $settings = [])
Runs a single job (PHP code) using a separate PHP process.
in AbstractPhpProcess at line 262
protected string
settingsToParameters(array $settings)
at line 26
protected array
getHandles()
Returns an array of file handles to be used in place of pipes
in DefaultPhpProcess at line 75
protected array
runProcess(string $job, array $settings)
Handles creating the child process and returning the STDOUT and STDERR