class Job

Single test job.

Constants

CODE_NONE

CODE_OK

CODE_SKIP

CODE_FAIL

CODE_ERROR

RUN_USLEEP

waiting time between process activity check in microseconds

RUN_ASYNC

RUN_COLLECT_ERRORS

Methods

__construct(Test $test, PhpInterpreter $interpreter, array $envVars = null)

No description

void
setEnvironmentVariable($name, $value)

No description

string
getEnvironmentVariable($name)

No description

void
run($flags = 0)

Runs single test.

bool
isRunning()

Checks if the test is still running.

getTest()

No description

int
getExitCode()

Returns exit code.

string[]
getHeaders()

Returns output headers.

Details

at line 57
__construct(Test $test, PhpInterpreter $interpreter, array $envVars = null)

No description

Parameters

Test $test
PhpInterpreter $interpreter
array $envVars

at line 77
void setEnvironmentVariable($name, $value)

No description

Parameters

$name
$value

Return Value

void

at line 87
string getEnvironmentVariable($name)

No description

Parameters

$name

Return Value

string

at line 98
void run($flags = 0)

Runs single test.

Parameters

$flags

Return Value

void

at line 156
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 194
Test getTest()

No description

Return Value

Test

at line 204
int getExitCode()

Returns exit code.

Return Value

int

at line 214
string[] getHeaders()

Returns output headers.

Return Value

string[]