/** * @covers CollectionType\Collection\CollectionAbstract::removeAny */ public function testRemoveAnyWhenContainValueAfterRemove() { $value = 'A'; $someCollection = clone $this->collection; $someCollection->add($value); $this->dummyType->isValid($value)->willReturn(true); $this->collection->add('A'); $this->collection->add('B'); $this->collection->add('C'); $this->collection->removeAny($someCollection); $result = $this->collection->getAll(); $this->assertEquals(['B', 'C'], $result); }