class Job

Single test job.

Constants

CodeNone

CodeOk

CodeSkip

CodeFail

CodeError

RunSleep

waiting time between process activity check in microseconds

Methods

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

No description

void
setTempDirectory(string|null $path)

No description

void
setEnvironmentVariable(string $name, string $value)

No description

string
getEnvironmentVariable(string $name)

No description

void
run(bool $async = false)

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 51
__construct(Test $test, PhpInterpreter $interpreter, array|null $envVars = null)

No description

Parameters

Test $test
PhpInterpreter $interpreter
array|null $envVars

at line 66
void setTempDirectory(string|null $path)

No description

Parameters

string|null $path

Return Value

void

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 89
void run(bool $async = false)

Runs single test.

Parameters

bool $async

Return Value

void

at line 141
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 181
Test getTest()

No description

Return Value

Test

at line 190
int getExitCode()

Returns exit code.

Return Value

int

at line 200
array getHeaders()

Returns output headers.

Return Value

array

at line 209
float|null getDuration()

Returns process duration in seconds.

Return Value

float|null