Job
class Job
Single test job.
Constants
CodeNone |
|
CodeOk |
|
CodeSkip |
|
CodeFail |
|
CodeError |
|
RunSleep |
waiting time between process activity check in microseconds |
Methods
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.
int
getExitCode()
Returns exit code.
array
getHeaders()
Returns output headers.
float|null
getDuration()
Returns process duration in seconds.
Details
at line 49
__construct(Test $test, PhpInterpreter $interpreter, array|null $envVars = null)
No description
at line 64
void
setTempDirectory(string|null $path)
No description
at line 72
void
setEnvironmentVariable(string $name, string $value)
No description
at line 78
string
getEnvironmentVariable(string $name)
No description
at line 87
void
run(bool $async = false)
Runs single test.
at line 139
bool
isRunning()
Checks if the test is still running.
at line 179
Test
getTest()
No description
at line 188
int
getExitCode()
Returns exit code.
at line 198
array
getHeaders()
Returns output headers.
at line 207
float|null
getDuration()
Returns process duration in seconds.