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

Methods

void
__construct($testFile, PhpInterpreter $interpreter, array $args = NULL)

No description

void
run($blocking = TRUE)

Runs single test.

bool
isRunning()

Checks if the test is still running.

string
getFile()

Returns test file path.

string[]
getArguments()

Returns script arguments.

int
getExitCode()

Returns exit code.

string
getOutput()

Returns test output.

string[]
getHeaders()

Returns output headers.

Details

at line 57
void __construct($testFile, PhpInterpreter $interpreter, array $args = NULL)

No description

Parameters

$testFile
PhpInterpreter $interpreter
array $args

Return Value

void

at line 70
void run($blocking = TRUE)

Runs single test.

Parameters

$blocking

Return Value

void

at line 104
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 137
string getFile()

Returns test file path.

Return Value

string

at line 147
string[] getArguments()

Returns script arguments.

Return Value

string[]

at line 157
int getExitCode()

Returns exit code.

Return Value

int

at line 167
string getOutput()

Returns test output.

Return Value

string

at line 177
string[] getHeaders()

Returns output headers.

Return Value

string[]