Skip to content

CommandSequence

Rasuvaeff\PropertyTesting\StateMachine\CommandSequence

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

Implements: Stringable

A generated, valid-by-construction sequence of Commands together with the initial model it was generated against.

This is the value a Gen::commands() arbitrary produces; the property body hands it to StateMachine\StateMachine::check(). It is \Stringable so a falsified property renders the failing sequence as a readable trace instead of [N element(s)].

Constructor

php
__construct(
    mixed $initialModel,
    list<\StateMachine\Command> $commands,
)
ParameterTypeDefaultDescription
$initialModelmixedrequired
$commandslist<\StateMachine\Command>required

Methods

__toString()

php
__toString(): string