You are here

public function CollectionTest::testCanRemoveNullValuesByKey in Plug 7

File

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

Class

CollectionTest

Namespace

Doctrine\Tests\Common\Collections

Code

public function testCanRemoveNullValuesByKey() {
  $this->collection
    ->add(null);
  $this->collection
    ->remove(0);
  $this
    ->assertTrue($this->collection
    ->isEmpty());
}