/** * @dataProvider simpleArrayProvider */ public function testNext(array $array) { $ma = new ImmutableArray($array); $next = next($array); $this->assertTrue($next === $ma->next()); }