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

The output instance.

protected RunnerInterface $runner

The original test runner.

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.

Details

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

Create a new test runner instance.

Parameters

Options $options
OutputInterface $output

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

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

at line 89
int execute()

Run the test suite.

Return Value

int

at line 111
protected void forEachProcess(callable $callback)

Apply the given callback for each process.

Parameters

callable $callback

Return Value

void

at line 132
protected Application createApplication()

Create the application.

Return Value

Application

Exceptions

RuntimeException