Skip to content

CallableTrialExecutor ​

Rasuvaeff\PropertyTesting\Runner\CallableTrialExecutor

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

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.