/** * @dataProvider provideDifferentElements */ public function testCurrent($elements) { $collection = new ArrayCollection($elements); $this->assertSame(current($elements), $collection->current()); next($elements); $collection->next(); $this->assertSame(current($elements), $collection->current()); }