Testing¶
This package provides additional sets for innmind/black-box
so you can more easily generate: Set
s and Sequence
s.
For the 2 ::of()
method you can pass as last parameter an instance of Innmind\BlackBox\Set\Intergers
to specify the range of elements to generate. By default it's between 0
and 100
, depending on the values you generate you may want to lower the upper bound to reduce the memory footprint and speed up your tests.
Set
¶
use Fixtures\Innmind\Immutable\Set;
use Innmind\BlackBox\Set as BSet;
/** @var BSet<Innmind\Immutable\Set<string>> */
$set = Set::of(
BSet\Strings::any(),
);