final class BehatRunner
    implements RunnerExtension

The built-in runner for Behat scenarios selected as file.feature:line.

The line must hold an English Scenario or Scenario Outline header; an outline runs all of its examples. Undefined and pending steps fail the run.

Methods§

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

Runs one Behat scenario.

Parameters

$configRunnerConfigThe Behat command, working directory and timeout
$targetstringThe feature file and the line of the scenario header

Returns

TestResult The verdict, or an error for a malformed or missing target

Throws

RuntimeException When the temporary report directory cannot be created
Test cases 6
Calls 7

Test cases 10§

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

Dedicated tests 6
Other tests reaching this symbol 4

Relations§

Instantiated in 1