public function CollectionTest::testFirstAndLast in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php \Doctrine\Tests\Common\Collections\CollectionTest::testFirstAndLast()
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 68
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testFirstAndLast() {
$this->collection
->add('one');
$this->collection
->add('two');
$this
->assertEquals($this->collection
->first(), 'one');
$this
->assertEquals($this->collection
->last(), 'two');
}