public function ArrayCollectionTest::testCurrent in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/ArrayCollectionTest.php \Doctrine\Tests\Common\Collections\ArrayCollectionTest::testCurrent()
@dataProvider provideDifferentElements
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ArrayCollectionTest.php, line 99
Class
- ArrayCollectionTest
- Tests for { @covers \Doctrine\Common\Collections\ArrayCollection
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testCurrent($elements) {
$collection = new ArrayCollection($elements);
$this
->assertSame(current($elements), $collection
->current());
next($elements);
$collection
->next();
$this
->assertSame(current($elements), $collection
->current());
}