remove() public method

public remove ( $key )
 /**
  * {@inheritdoc}
  */
 public function remove($key)
 {
     return $this->collection->remove($key);
 }
 public function testRemoveIsForwarded()
 {
     $collection = $this->getMockCollection();
     $collection->expects($this->once())->method('remove')->willReturn(2);
     $pcoll = new PersistentCollection($collection, $this->getMockDocumentManager(), $this->getMockUnitOfWork());
     $pcoll->remove(0);
     $this->assertTrue($pcoll->isDirty());
 }