Пример #1
0
 /**
  * @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());
 }