BoolArbitrary
Rasuvaeff\PropertyTesting\Arbitrary\BoolArbitrary
Class — Package: property-testing-core — Source — Version: v0.1.0-12-g86ead85
Implements: ArbitraryInterface
Generates booleans. false is the "smaller" boolean: true shrinks to false, false is terminal.
Methods
generate()
php
generate(Random $random): ShrinkableProduce one random value from this arbitrary's space, together with its shrink tree. Candidates must be ordered most aggressive first (typically toward a zero/empty/identity element) and every branch of the tree must be finite, so shrinking terminates.
Documentation inherited from ArbitraryInterface.