final class VerificationResult

The verdict for one item: its status and how many linked targets and tests passed.

The status is "passed", "failed", "unverified", "deferred", "unsupported", "not-applicable" or "not-run".

Properties§

public string $status
public int $tests
public int|null $passedTargets
public int $totalTargets
public string $message = ''
public int $deferredTargets = 0

Methods§

public function __construct(
    public string $status,
    public int $tests,
    public int|null $passedTargets,
    public int $totalTargets,
    public string $message = '',
    public int $deferredTargets = 0,
)

Parameters

$statusstringThe verdict
$testsintThe number of executed test cases
$passedTargetsint|nullThe number of passing linked targets, null when tests were not run
$totalTargetsintThe number of distinct linked targets
$messagestringFailure or deferral messages, one per line
$deferredTargetsintThe number of manual targets not executed
public function toArray(): array{status: string, tests: int, passed_targets: ?int, total_targets: int, message: string, deferred_targets: int}

Returns the verdict as a JSON-ready record.

Returns

array{status: string, tests: int, passed_targets: ?int, total_targets: int, message: string, deferred_targets: int} The verdict fields
Test cases 3

Test cases 9§

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 6

Relations§

Instantiated in 5
Type declarations 1