Skip to content

RunStatistics

Rasuvaeff\PropertyTesting\Runner\RunStatistics

ClassPackage: property-testing-coreSourceVersion: v0.1.0-12-g86ead85

Counters of a random phase, carried by the results whose reporting needs them: the classification distribution and the excessive-discard warning are printed by the adapter (the engine never formats framework output), so the result hands over the raw numbers.

Constructor

php
__construct(
    int $attempts,
    int $discards,
    int $checks,
    array<string,int> $classifications,
)
ParameterTypeDefaultDescription
$attemptsintrequiredBodies executed in the random phase, discarded ones included.
$discardsintrequiredRuns discarded via Assume::that().
$checksintrequiredSuccessful (non-discarded, non-failing) runs completed.
$classificationsarray<string,int>requiredPer-label counts from Classify over the passing runs.