Skip to content

RunDiscarded ​

Rasuvaeff\PropertyTesting\Event\RunDiscarded

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

Implements: Event\PropertyEvent

A random-phase attempt was discarded — neither a failure nor a successful check. Two things arrive here: an input the property rejected through Assume::that(), and a run the environment refused (a skipped body or lifecycle hook). $skipped says which, because the two spend separate budgets and mean opposite things — one is a statement about the generators, the other about the machine.

Constructor ​

php
__construct(
    string $propertyId,
    int $attempt,
    array<string,mixed> $arguments,
    array<string,mixed> $draws,
    bool $skipped = false,
)
ParameterTypeDefaultDescription
$propertyIdstringrequired
$attemptintrequired
$argumentsarray<string,mixed>requiredGenerated inputs, keyed by parameter name.
$drawsarray<string,mixed>requiredIn-body draws as draw#N pseudo-arguments.
$skippedboolfalseThe environment refused this run, rather than the property discarding the input it was given.