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

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

No description

void
run($flags = NULL)

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|null
getErrorOutput()

Returns test error output.

string[]
getHeaders()

Returns output headers.

Details

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

No description

Parameters

$testFile
PhpInterpreter $interpreter
array $args

Return Value

void

at line 80
void run($flags = NULL)

Runs single test.

Parameters

$flags

Return Value

void

at line 123
bool isRunning()

Checks if the test is still running.

Return Value

bool

at line 162
string getFile()

Returns test file path.

Return Value

string

at line 172
string[] getArguments()

Returns script arguments.

Return Value

string[]

at line 182
int getExitCode()

Returns exit code.

Return Value

int

at line 192
string getOutput()

Returns test output.

Return Value

string

at line 202
string|null getErrorOutput()

Returns test error output.

Return Value

string|null

at line 212
string[] getHeaders()

Returns output headers.

Return Value

string[]