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

__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.

void
forProcess(string $token, callable $callback)

Apply the given callback for one process.

createApplication()

Create the application.

Details

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

Create a new test runner instance.

Parameters

Options $options
OutputInterface $output

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.

Parameters

Closure|null $resolver

Return Value

void

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.

Parameters

Closure|null $resolver

Return Value

void

at line 88
int execute()

Run the test suite.

Return Value

int

at line 128
protected void forEachProcess(callable $callback)

Apply the given callback for each process.

Parameters

callable $callback

Return Value

void

at line 138
protected void forProcess(string $token, callable $callback)

Apply the given callback for one process.

Parameters

string $token
callable $callback

Return Value

void

at line 175
protected Application createApplication()

Create the application.

Return Value

Application

Exceptions

RuntimeException