Job
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
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.
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
at line 77
void
setEnvironmentVariable(string $name, string $value)
No description
at line 83
string
getEnvironmentVariable(string $name)
No description
at line 93
void
run(int $flags = 0)
Runs single test.
at line 149
bool
isRunning()
Checks if the test is still running.
at line 191
Test
getTest()
No description
at line 200
int
getExitCode()
Returns exit code.
at line 210
array
getHeaders()
Returns output headers.
at line 219
float|null
getDuration()
Returns process duration in seconds.