Closed jubianchi closed 7 years ago
The phpArray asserter has a new assertion: values. It was added in atoum/atoum#667.
phpArray
values
Here is an example:
$this ->given($arr = [0 => 'foo', 2 => 'bar', 3 => 'baz']) ->then ->array($arr)->values ->string[0]->isEqualTo('foo') ->string[1]->isEqualTo('bar') ->string[2]->isEqualTo('baz') ;
The
phpArray
asserter has a new assertion:values
. It was added in atoum/atoum#667.Here is an example: