Permalink
Browse files

Adding failing test for doctrine/common#135

  • Loading branch information...
1 parent 8083888 commit 5c5c74b4e315ef65d9f1da8c60ee667d5bdec374 @Ocramius Ocramius committed Nov 9, 2012
Showing with 7 additions and 0 deletions.
  1. +7 −0 tests/Doctrine/Tests/Common/Collections/CollectionTest.php
@@ -211,4 +211,11 @@ public function testSelect()
$this->assertNotSame($col, $this->_coll);
$this->assertEquals(1, count($col));
}
+
+ public function testCanRemoveNullValuesByKey()
+ {
+ $this->_coll->add(null);
+ $this->_coll->remove(0);
+ $this->assertTrue($this->_coll->isEmpty());
+ }
}

0 comments on commit 5c5c74b

Please sign in to comment.