PHPUnit_Util_PHP
class PHPUnit_Util_PHP (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 51
__construct()
Creates internal Runtime instance.
at line 65
setUseStderrRedirection(bool $stderrRedirection)
Defines if should use STDERR redirection or not.
Then $stderrRedirection is TRUE, STDERR is redirected to STDOUT.
at line 79
bool
useStderrRedirection()
Returns TRUE if uses STDERR redirection or FALSE if not.
at line 89
setStdin(string $stdin)
Sets the input string to be sent via STDIN
at line 99
string
getStdin()
Returns the input string to be sent via STDIN
at line 109
setArgs(string $args)
Sets the string of arguments to pass to the php job
at line 119
getArgs()
Returns the string of arguments to pass to the php job
at line 129
setEnv(array $env)
Sets the array of environment variables to start the child process with
at line 139
array
getEnv()
Returns the array of environment variables to start the child process with
at line 149
setTimeout(int $timeout)
Sets the amount of seconds to wait before timing out
at line 159
int
getTimeout()
Returns the amount of seconds to wait before timing out
at line 167
static PHPUnit_Util_PHP
factory()
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 207
string
getCommand(array $settings, string|null $file = null)
Returns the command based into the configurations.
at line 245
abstract array
runJob(string $job, array $settings = [])
Runs a single job (PHP code) using a separate PHP process.