public function CollectionTest::testRemoveElement in Plug 7
File
- lib/
doctrine/ collections/ tests/ Doctrine/ Tests/ Common/ Collections/ CollectionTest.php, line 171
Class
Namespace
Doctrine\Tests\Common\CollectionsCode
public function testRemoveElement() {
$this->collection[] = 'one';
$this->collection[] = 'two';
$this
->assertTrue($this->collection
->removeElement('two'));
$this
->assertFalse($this->collection
->contains('two'));
$this
->assertFalse($this->collection
->removeElement('two'));
}