PHPUnit_Util_PHP_Windows
extends PHPUnit_Util_PHP_Default
in package
Windows utility for PHP sub-processes.
Tags
Table of Contents
- $tempFile : string
- factory() : PHPUnit_Util_PHP
- runJob() : array<string|int, mixed>
- Runs a single job (PHP code) using a separate PHP process.
- runTestJob() : mixed
- Runs a single test in a separate PHP process.
- cleanup() : mixed
- process() : mixed
- settingsToParameters() : string
- getException() : Exception
- Gets the thrown exception from a PHPUnit_Framework_TestFailure.
- processChildResult() : mixed
- Processes the TestResult object from an isolated process.
Properties
$tempFile
private
string
$tempFile
Methods
factory()
public
static factory() : PHPUnit_Util_PHP
Tags
Return values
PHPUnit_Util_PHP —runJob()
Runs a single job (PHP code) using a separate PHP process.
public
runJob(mixed $job[, array<string|int, mixed> $settings = array() ]) : array<string|int, mixed>
Reading from STDOUT or STDERR hangs forever on Windows if the output is too large.
Parameters
- $job : mixed
- $settings : array<string|int, mixed> = array()
Tags
Return values
array<string|int, mixed> —runTestJob()
Runs a single test in a separate PHP process.
public
runTestJob(string $job, PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result) : mixed
Parameters
- $job : string
- $test : PHPUnit_Framework_Test
- $result : PHPUnit_Framework_TestResult
Tags
Return values
mixed —cleanup()
protected
cleanup() : mixed
Tags
Return values
mixed —process()
protected
process(resource $pipe, string $job) : mixed
Parameters
- $pipe : resource
- $job : string
Tags
Return values
mixed —settingsToParameters()
protected
settingsToParameters(array<string|int, mixed> $settings) : string
Parameters
- $settings : array<string|int, mixed>
Tags
Return values
string —getException()
Gets the thrown exception from a PHPUnit_Framework_TestFailure.
private
getException(PHPUnit_Framework_TestFailure $error) : Exception
Parameters
- $error : PHPUnit_Framework_TestFailure
Tags
Return values
Exception —processChildResult()
Processes the TestResult object from an isolated process.
private
processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, string $stdout, string $stderr) : mixed
Parameters
- $test : PHPUnit_Framework_Test
- $result : PHPUnit_Framework_TestResult
- $stdout : string
- $stderr : string