Skip to content

CallableTrialExecutor

Rasuvaeff\PropertyTesting\Runner\CallableTrialExecutor

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

Implements: Runner\TrialExecutor

The standalone executor: a plain callback is the property body. A normal return passes, Assume::that() discards, any other throwable fails the trial.

This is what a custom harness (CLI script, application-side checker) uses with Runner\PropertyRunner directly, without any test framework.

Constructor

php
__construct(
    callable $body,
)
ParameterTypeDefaultDescription
$bodycallablerequiredReceives the generated arguments positionally, in Runner\PropertyDefinition::$parameterNames order.

Methods

execute()

php
execute(array<string,mixed> $arguments): Runner\TrialOutcome

Documentation inherited from Runner\TrialExecutor.