You are here

public function CollectionTest::testRemove in Plug 7

File

lib/doctrine/collections/tests/Doctrine/Tests/Common/Collections/CollectionTest.php, line 160

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

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