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(string $name, string $value)

No description

string
getEnvironmentVariable(string $name)

No description

void
run(int $flags = 0)

Runs single test.

bool
isRunning()

Checks if the test is still running.

getTest()

No description

int
getExitCode()

Returns exit code.

array
getHeaders()

Returns output headers.

Details

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

No description

Parameters

Test $test
PhpInterpreter $interpreter
array $envVars

at line 74
void setEnvironmentVariable(string $name, string $value)

No description

Parameters

string $name
string $value

Return Value

void

at line 80
string getEnvironmentVariable(string $name)

No description

Parameters

string $name

Return Value

string

at line 90
void run(int $flags = 0)

Runs single test.

Parameters

int $flags

self::RUN_ASYNC | self::RUN_COLLECT_ERRORS

Return Value

void

at line 147
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 182
Test getTest()

No description

Return Value

Test

at line 191
int getExitCode()

Returns exit code.

Return Value

int

at line 201
array getHeaders()

Returns output headers.

Return Value

array