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|null $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.

float|null
getDuration()

Returns process duration in seconds.

Details

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

No description

Parameters

Test $test
PhpInterpreter $interpreter
array|null $envVars

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

No description

Parameters

string $name
string $value

Return Value

void

at line 83
string getEnvironmentVariable(string $name)

No description

Parameters

string $name

Return Value

string

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

Runs single test.

Parameters

int $flags

self::RUN_ASYNC | self::RUN_COLLECT_ERRORS

Return Value

void

at line 149
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 191
Test getTest()

No description

Return Value

Test

at line 200
int getExitCode()

Returns exit code.

Return Value

int

at line 210
array getHeaders()

Returns output headers.

Return Value

array

at line 219
float|null getDuration()

Returns process duration in seconds.

Return Value

float|null