final class PhpUnitRunner
    implements RunnerExtension

The built-in runner for PHPUnit test methods selected as Class::method.

The filter selects exactly that method and each of its data sets; risky, warning, skipped and incomplete tests fail the run.

Methods§

public function run(RunnerConfig $config, string $target): TestResult

Runs one PHPUnit test method.

Parameters

$configRunnerConfigThe PHPUnit command, working directory and timeout
$targetstringA fully qualified Class::method reference

Returns

TestResult The verdict, or an error for a malformed target

Throws

RuntimeException When the temporary report directory cannot be created
Test cases 4
Calls 5

Test cases 8§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 4
Other tests reaching this symbol 4

Relations§

Instantiated in 1