public function ArrayCollectionTest::testLast in Plug 7
@dataProvider provideDifferentElements
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ ArrayCollectionTest.php, line 54
Class
- ArrayCollectionTest
- Tests for { @covers \Doctrine\Common\Collections\ArrayCollection
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testLast($elements) {
$collection = new ArrayCollection($elements);
$this
->assertSame(end($elements), $collection
->last());
}