Skip to content

Proposition::arrays()

Jonathan Gjertsen edited this page Jun 18, 2017 · 5 revisions

Syntax

$proposition->given(Proposition::arrays(Generator $generator, $max_array_size))

Provides a stream of arrays where the elements are provided by the input $generator. The arrays will have lengths from 0 up to $max_array_size.

For arrays with a fixed size, use Proposition::fixedLengthArrays().