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 OutputInterface $output

The output instance.

from  RunsInParallel
protected RunnerInterface $runner

The original test runner.

from  RunsInParallel

Methods

__construct(Options $options, OutputInterface $output)

Create a new test runner instance.

static void
resolveApplicationUsing(Closure|null $resolver)

Set the application resolver callback.

static void
resolveRunnerUsing(Closure|null $resolver)

Set the runner resolver callback.

int
execute()

Run the test suite.

void
forEachProcess(callable $callback)

Apply the given callback for each process.

createApplication()

Create the application.

int
run()

Run the test suite.

static void
flushState()

Flush all static state.

Details

in RunsInParallel at line 49
__construct(Options $options, OutputInterface $output)

Create a new test runner instance.

Parameters

Options $options
OutputInterface $output

in RunsInParallel at line 70
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.

Parameters

Closure|null $resolver

Return Value

void

in RunsInParallel at line 81
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.

Parameters

Closure|null $resolver

Return Value

void

in RunsInParallel at line 89
int execute()

Run the test suite.

Return Value

int

in RunsInParallel at line 111
protected void forEachProcess(callable $callback)

Apply the given callback for each process.

Parameters

callable $callback

Return Value

void

in RunsInParallel at line 132
protected Application createApplication()

Create the application.

Return Value

Application

Exceptions

RuntimeException

at line 17
int run()

Run the test suite.

Return Value

int

at line 25
static void flushState()

Flush all static state.

Return Value

void