public function CollectionTest::testRemove 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::testRemove()
File
- vendor/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 160
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testRemove() {
$this->collection[] = 'one';
$this->collection[] = 'two';
$el = $this->collection
->remove(0);
$this
->assertEquals('one', $el);
$this
->assertEquals($this->collection
->contains('one'), false);
$this
->assertNull($this->collection
->remove(0));
}