Skip to content

PropertyConfig

Rasuvaeff\PropertyTesting\Runner\PropertyConfig

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

Resolved knobs of one property run. The engine never reads the process environment: an adapter resolves its attribute/env/defaults into this value and hands it over, so a direct PropertyRunner call has no hidden process state.

Constructor

php
__construct(
    int $runs = 100,
    ?int $seed = NULL,
    ?int $maxShrinks = NULL,
    ?int $maxDiscards = NULL,
    ?int $timeoutMs = NULL,
    ?int $budgetMs = NULL,
)
ParameterTypeDefaultDescription
$runsint100Number of successful checks to complete. Discarded runs do not count.
$seed?intNULLSeed of the random phase. Null lets the runner draw a random one.
$maxShrinks?intNULLCap on accepted shrink steps. Null means no cap, 0 disables shrinking.
$maxDiscards?intNULLMaximum discarded runs before giving up. Null uses ten times $runs (saturating to PHP_INT_MAX).
$timeoutMs?intNULLWall-clock deadline for a single run in milliseconds; null disables it.
$budgetMs?intNULLWall-clock budget for the whole random phase in milliseconds; null disables it.