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 48
__construct(Options $options, OutputInterface $output)
Create a new test runner instance.
at line 69
static void
resolveApplicationUsing(Closure|null $resolver)
Set the application resolver callback.
Tests only. The resolver persists in a static property for the worker lifetime and affects every subsequent parallel test runner instance.
at line 80
static void
resolveRunnerUsing(Closure|null $resolver)
Set the runner resolver callback.
Tests only. The resolver persists in a static property for the worker lifetime and affects every subsequent parallel test runner instance.
at line 88
int
execute()
Run the test suite.
at line 128
protected void
forEachProcess(callable $callback)
Apply the given callback for each process.
at line 138
protected void
forProcess(string $token, callable $callback)
Apply the given callback for one process.
at line 175
protected Application
createApplication()
Create the application.