ParallelRunner
class ParallelRunner implements RunnerInterface
Traits
Properties
| static protected Closure|null | $applicationResolver | The application resolver callback. |
from RunsInParallel |
| static protected Closure|null | $runnerResolver | The runner resolver callback. |
from RunsInParallel |
| protected Options | $options | The original test runner options. |
from RunsInParallel |
| protected RunnerInterface | $runner | The original test runner. |
from RunsInParallel |
Methods
Create a new test runner instance.
Apply the given callback for each process.
Apply the given callback for one process.
Run the test suite.
Flush all static state.
Details
in
RunsInParallel at line 48
__construct(Options $options, OutputInterface $output)
Create a new test runner instance.
in
RunsInParallel 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.
in
RunsInParallel 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.
in
RunsInParallel at line 88
int
execute()
Run the test suite.
in
RunsInParallel at line 128
protected void
forEachProcess(callable $callback)
Apply the given callback for each process.
in
RunsInParallel at line 138
protected void
forProcess(string $token, callable $callback)
Apply the given callback for one process.
in
RunsInParallel at line 175
protected Application
createApplication()
Create the application.
at line 17
int
run()
Run the test suite.
at line 25
static void
flushState()
Flush all static state.