Skip to content

RegressionViolationException

Rasuvaeff\PropertyTesting\RegressionViolationException

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

Extends: RuntimeException

Implements: Stringable, Throwable

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