class Runner

Discovers tests, schedules parallel jobs, and aggregates results.

Properties

list<string> $paths
list<string> $ignoreDirs
$threadCount
$testHandler
OutputHandler> $outputHandlers
$stopOnFail

Methods

__construct(PhpInterpreter $interpreter)

No description

void
setEnvironmentVariable(string $name, string $value)

No description

array
getEnvironmentVariables()

No description

void
addPhpIniOption(string $name, string|null $value = null)

No description

void
setTempDirectory(string|null $path)

No description

bool
run()

Runs all tests.

void
addJob(Job $job)

Appends new job to queue.

void
prepareTest(Test $test)

No description

void
finishTest(Test $test)

Notifies all output handlers that a test has finished, updates the result cache, and stops on failure if configured.

getInterpreter()

No description

Details

at line 47
__construct(PhpInterpreter $interpreter)

No description

Parameters

PhpInterpreter $interpreter

at line 54
void setEnvironmentVariable(string $name, string $value)

No description

Parameters

string $name
string $value

Return Value

void

at line 61
array getEnvironmentVariables()

No description

Return Value

array

at line 67
void addPhpIniOption(string $name, string|null $value = null)

No description

Parameters

string $name
string|null $value

Return Value

void

at line 73
void setTempDirectory(string|null $path)

No description

Parameters

string|null $path

Return Value

void

at line 83
bool run()

Runs all tests.

Return Value

bool

at line 173
void addJob(Job $job)

Appends new job to queue.

Parameters

Job $job

Return Value

void

at line 179
void prepareTest(Test $test)

No description

Parameters

Test $test

Return Value

void

at line 190
void finishTest(Test $test)

Notifies all output handlers that a test has finished, updates the result cache, and stops on failure if configured.

Parameters

Test $test

Return Value

void

at line 211
PhpInterpreter getInterpreter()

No description

Return Value

PhpInterpreter