You are here

public function CollectionTest::testRemoveElement in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php \Doctrine\Tests\Common\Collections\CollectionTest::testRemoveElement()

File

vendor/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php, line 171

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

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'));
}