remove() public method

public remove ( $key )
 public function testIsEmpty()
 {
     $collection = new ArrayResourceCollection();
     $this->assertTrue($collection->isEmpty());
     $collection->add($this->getMock('Puli\\Repository\\Api\\Resource\\BodyResource'));
     $this->assertFalse($collection->isEmpty());
     $collection->remove(0);
     $this->assertTrue($collection->isEmpty());
 }