These docs have moved. The package is frozen at 2.8.1; the current documentation lives on the family site, property-testing. If the redirect did not fire, open the migration guide.
Skip to content

PostconditionViolation

Rasuvaeff\PropertyTesting\StateMachine\PostconditionViolation

ClassSourceExtends: RuntimeException

Thrown by StateMachine::check() when a command's Command::postCondition() returns false.

Carries the executed trace (command labels up to and including the failing one), the failing command, and the pre-state model and observed result, so the property runner surfaces exactly which step of the sequence broke.

Properties

PropertyTypeReadonly
tracearrayyes
stepintyes
commandStateMachine\Commandyes
modelmixedyes
resultmixedyes