RunsInParallel
trait RunsInParallel
Properties
| static protected Closure|null | $applicationResolver | The application resolver callback. |
|
| static protected Closure|null | $runnerResolver | The runner resolver callback. |
|
| protected Options | $options | The original test runner options. |
|
| protected RunnerInterface | $runner | The original test runner. |
Methods
Create a new test runner instance.
Run the test suite.
Apply the given callback for each process.
Apply the given callback for one process.
Create the application.
Details
at line 51
__construct(Options $options, OutputInterface $output)
Create a new test runner instance.
at line 72
static void
resolveApplicationUsing(Closure|null $resolver)
Set the application resolver callback.
The resolver persists in a static property for the worker lifetime and affects every subsequent parallel test runner instance.
at line 84
static void
resolveRunnerUsing(Closure|null $resolver)
Set the runner resolver callback.
The resolver persists in a static property for the worker lifetime and affects every subsequent parallel test runner instance.
at line 93
int
execute()
Run the test suite.
at line 133
protected void
forEachProcess(callable $callback)
Apply the given callback for each process.
at line 143
protected void
forProcess(string $token, callable $callback)
Apply the given callback for one process.
at line 180
protected Application
createApplication()
Create the application.