Skip to content

SearchReport ​

Rasuvaeff\PropertyTesting\Runner\SearchReport

Class — Package: property-testing-core — Source — Version: v1.0.0-1-g88fdee2

What the targeted search of a run amounted to, as data: how many bodies the search phase executed and where every label ended up. Built once, when the run finishes, and carried on Event\PropertyFinished beside the DistributionReport — only for a run that targeted something, so a property that never calls Target pays nothing and sees nothing.

Constructor ​

php
__construct(
    int $evaluations,
    array<string,\Runner\TargetOutcome> $targets,
)
ParameterTypeDefaultDescription
$evaluationsintrequiredBodies executed in the search phase (the random phase's are in the distribution report).
$targetsarray<string,\Runner\TargetOutcome>requiredBy label, in the order the labels were first reported.

Methods ​

toArray() ​

php
toArray(): array

Machine-readable form for telemetry.