trait RunsInParallel (View source)

Traits

CreatesApplication

Properties

static protected Closure|null $applicationResolver

The application resolver callback.

static protected Closure|null $runnerResolver

The runner resolver callback.

protected Options|Options $options

The original test runner options.

protected OutputInterface $output

The output instance.

protected RunnerInterface|RunnerInterface $runner

The original test runner.

Methods

void
__construct(Options|Options $options, OutputInterface $output)

Creates 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()

Runs the test suite.

int
getExitCode()

Returns the highest exit code encountered throughout the course of test execution.

void
forEachProcess(callable $callback)

Apply the given callback for each process.

createApplication()

Creates the application.

Details

void __construct(Options|Options $options, OutputInterface $output)

Creates a new test runner instance.

Parameters

Options|Options $options
OutputInterface $output

Return Value

void

static void resolveApplicationUsing(Closure|null $resolver)

Set the application resolver callback.

Parameters

Closure|null $resolver

Return Value

void

static void resolveRunnerUsing(Closure|null $resolver)

Set the runner resolver callback.

Parameters

Closure|null $resolver

Return Value

void

int execute()

Runs the test suite.

Return Value

int

int getExitCode()

Returns the highest exit code encountered throughout the course of test execution.

Return Value

int

protected void forEachProcess(callable $callback)

Apply the given callback for each process.

Parameters

callable $callback

Return Value

void

protected Application createApplication()

Creates the application.

Return Value

Application

Exceptions

RuntimeException