Documentation

PHPUnit_Util_PHP_Default extends PHPUnit_Util_PHP
in package

Default utility for PHP sub-processes.

Tags
since

Class available since Release 3.5.12

Table of Contents

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.

Methods

runJob()

Runs a single job (PHP code) using a separate PHP process.

public runJob(string $job[, array<string|int, mixed> $settings = array() ]) : array<string|int, mixed>
Parameters
$job : string
$settings : array<string|int, mixed> = array()
Tags
throws
PHPUnit_Framework_Exception
Return values
array<string|int, mixed>

cleanup()

protected cleanup() : mixed
Tags
since

Method available since Release 3.5.12

Return values
mixed

process()

protected process(resource $pipe, string $job) : mixed
Parameters
$pipe : resource
$job : string
Tags
throws
PHPUnit_Framework_Exception
since

Method available since Release 3.5.12

Return values
mixed

settingsToParameters()

protected settingsToParameters(array<string|int, mixed> $settings) : string
Parameters
$settings : array<string|int, mixed>
Tags
since

Method available since Release 4.0.0

Return values
string

Search results