classVerificationResult
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 $statuspublic int $testspublic int|null $passedTargetspublic int $totalTargetspublic string $message = ''public int $deferredTargets = 0Methods§
public function __construct(
public string $status,
public int $tests,
public int|null $passedTargets,
public int $totalTargets,
public string $message = '',
public int $deferredTargets = 0,
)Parameters
$status | string | The verdict |
$tests | int | The number of executed test cases |
$passedTargets | int|null | The number of passing linked targets, null when tests were not run |
$totalTargets | int | The number of distinct linked targets |
$message | string | Failure or deferral messages, one per line |
$deferredTargets | int | The 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 fieldsTest 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
ApplicationTestcallsCommandHandlerTestcallsExecutorTestcallsSpecificationReportTestcallsTargetResultsTestcallsVerifierTestcalls
Relations§
Instantiated in 5
- new Requirements\Verification\TargetResults::summarize() packages/requirements/src/Verification/TargetResults.php:48
- new Requirements\Verification\Verifier::verify() packages/requirements/src/Verification/Verifier.php:43
- new Requirements\Verification\Verifier::verify() packages/requirements/src/Verification/Verifier.php:47
- new Requirements\Verification\Verifier::verify() packages/requirements/src/Verification/Verifier.php:51
- new Requirements\Verification\Verifier::verify() packages/requirements/src/Verification/Verifier.php:55