PHPUnit_Util_PHP_Windows
class PHPUnit_Util_PHP_Windows extends PHPUnit_Util_PHP_Default (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 PHPUnit_Util_PHP | |
protected bool | $stderrRedirection | from PHPUnit_Util_PHP | |
protected string | $stdin | from PHPUnit_Util_PHP | |
protected string | $args | from PHPUnit_Util_PHP | |
protected array | $env | from PHPUnit_Util_PHP | |
protected int | $timeout | from PHPUnit_Util_PHP | |
protected string | $tempFile | from PHPUnit_Util_PHP_Default | |
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
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 PHPUnit_Util_PHP at line 51
__construct()
Creates internal Runtime instance.
in PHPUnit_Util_PHP at line 65
setUseStderrRedirection(bool $stderrRedirection)
Defines if should use STDERR redirection or not.
Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.
in PHPUnit_Util_PHP at line 79
bool
useStderrRedirection()
Returns TRUE if uses STDERR redirection or FALSE if not.
in PHPUnit_Util_PHP at line 89
setStdin(string $stdin)
Sets the input string to be sent via STDIN
in PHPUnit_Util_PHP at line 99
string
getStdin()
Returns the input string to be sent via STDIN
in PHPUnit_Util_PHP at line 109
setArgs(string $args)
Sets the string of arguments to pass to the php job
in PHPUnit_Util_PHP at line 119
getArgs()
Returns the string of arguments to pass to the php job
in PHPUnit_Util_PHP at line 129
setEnv(array $env)
Sets the array of environment variables to start the child process with
in PHPUnit_Util_PHP at line 139
array
getEnv()
Returns the array of environment variables to start the child process with
in PHPUnit_Util_PHP at line 149
setTimeout(int $timeout)
Sets the amount of seconds to wait before timing out
in PHPUnit_Util_PHP at line 159
int
getTimeout()
Returns the amount of seconds to wait before timing out
in PHPUnit_Util_PHP at line 167
static PHPUnit_Util_PHP
factory()
in PHPUnit_Util_PHP at line 185
runTestJob(string $job, PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result)
Runs a single test in a separate PHP process.
at line 36
string
getCommand(array $settings, string|null $file = null)
Returns the command based into the configurations.
array
runJob(string $job, array $settings = [])
Runs a single job (PHP code) using a separate PHP process.
in PHPUnit_Util_PHP at line 252
protected string
settingsToParameters(array $settings)
at line 23
protected array
getHandles()
Returns an array of file handles to be used in place of pipes
protected array
runProcess(string $job, array $settings)
Handles creating the child process and returning the STDOUT and STDERR