final class TestReference

A test linked to a specification: the configured runner and the target it runs.

Properties§

public string $runner
public string $target
public string $run = 'auto'

Methods§

public function __construct(
    public string $runner,
    public string $target,
    public string $run = 'auto',
)

Parameters

$runnerstringThe name of a configured runner
$targetstringThe test selection passed to that runner
$runstringWhether the test runs automatically or only with --all

Throws

InvalidInputException When the execution policy is unknown
Calls 2
public static function from(mixed $value): self

Reads a tests entry of a definition.

Parameters

$valuemixedThe decoded tests entry

Returns

self The test reference

Throws

InvalidInputException When the entry has unknown fields or lacks a runner or target
Test cases 3
Called from 1
Calls 4

Test cases 24§

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

Dedicated tests 3
Other tests reaching this symbol 21

Relations§

Static calls 1