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