classPhpUnitRunner
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): TestResultRuns one PHPUnit test method.
Parameters
$config | RunnerConfig | The PHPUnit command, working directory and timeout |
$target | string | A fully qualified Class::method reference |
Returns
TestResult The verdict, or an error for a malformed targetThrows
RuntimeException When the temporary report directory cannot be createdTest cases 4
Calls 5
- function-call
preg_matchline 31 - new TestResult line 32
- function-call
preg_quoteline 34 - method-call ProcessRunner::run() line 35
- new ProcessRunner line 35
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.