Skip to content

Proposition::stringsFromCharset()

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

Syntax

$proposition->given(Proposition::stringsFromCharset($max_len, $charset));

Provides a stream of strings of length up to $max_len from a custom charset, which must be provided as a string of characters, e.g. 'aeouiy'.

Other options

See String generator overview for a list of all string generators.