Skip to content

RegressionViolationException ​

Rasuvaeff\PropertyTesting\RegressionViolationException

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

Extends: RuntimeException

Implements: Throwable, Stringable, PropertyTestingException

Reported when a recorded regression fails again: the minimised input of an earlier failure, replayed from the on-disk corpus (PROPERTY_DB) before the random phase.

The input is already minimal — it is the shrunk counterexample of the run that recorded it — so it is replayed once and reported verbatim, without shrinking. A regression stored as a bare seed instead of values replays the whole random phase and reports the usual PropertyViolationException.

Constructor ​

php
__construct(
    array<string,mixed> $arguments,
    int $seed,
    ?\Throwable $failure = NULL,
)
ParameterTypeDefaultDescription
$argumentsarray<string,mixed>requiredThe recorded input, keyed by parameter name.
$seedintrequiredSeed of the run that originally recorded this regression.
$failure?\ThrowableNULLThe assertion or exception the replay raised.

Methods ​

getArguments() ​

php
getArguments(): array

getSeed() ​

php
getSeed(): int