NAME
Test::Proto::Series - represent a series in array validation
SYNOPSIS
pArray->contains_only(pSeries('a', 'b', 'c'));
# will validate ['a', 'b', 'c'] as true
Used in array validation to represent a sequence which must be present in its entirety. Only really useful when used in combination with Test::Proto::Repeatable and Test::Proto::Alternation, which can be nested inside a series, or can contain a series.
METHODS
new
Each argument is another element in the series.
contents
die unless exists $alternation->contents->[0];
A chainable getter/setter method for the contents of the series.