- \PHPUnit_Util_PHP
abstract class (none) \ PHPUnit_Util_PHP
- All known direct subclasses:
- PHPUnit_Util_PHP_Default
Utility methods for PHP sub-processes.
Method Summary
| Name | Description | 
|---|---|
| factory() | |
| getException(PHPUnit_Framework_TestFailure $error) | Gets the thrown exception from a PHPUnit_Framework_TestFailure. | 
| processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr) | Processes the TestResult object from an isolated process. | 
| runJob($job, array $settings = array()) | Runs a single job (PHP code) using a separate PHP process. | 
| runTestJob($job, PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result) | Runs a single test in a separate PHP process. | 
| settingsToParameters(array $settings) | 
public static function factory()
- Returns:
- PHPUnit_Util_PHP
private function getException(PHPUnit_Framework_TestFailure $error)
Gets the thrown exception from a PHPUnit_Framework_TestFailure.
- Parameters:
PHPUnit_Framework_TestFailure- $error- Returns:
- Exception
- See Also:
- https://github.com/sebastianbergmann/phpunit/issues/74
private function processChildResult(PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result, $stdout, $stderr)
Processes the TestResult object from an isolated process.
- Parameters:
PHPUnit_Framework_Test- $testPHPUnit_Framework_TestResult- $resultstring- $stderr
public abstract function runJob($job, array $settings = array())
Runs a single job (PHP code) using a separate PHP process.
- Parameters:
string- $jobarray- $settings- Defaults:
settings= array()- Returns:
- array
- Throws:
- PHPUnit_Framework_Exception
public function runTestJob($job, PHPUnit_Framework_Test $test, PHPUnit_Framework_TestResult $result)
Runs a single test in a separate PHP process.
- Parameters:
string- $jobPHPUnit_Framework_Test- $testPHPUnit_Framework_TestResult- $result- Throws:
- PHPUnit_Framework_Exception
protected function settingsToParameters(array $settings)
- Parameters:
array- $settings- Returns:
- string