public function testInsertDiff() { $expectedInsert = new ArrayCollection(array(new HelperCollectionObject(99), new HelperCollectionObject(4))); $this->assertEquals(array_values($expectedInsert->toArray()), array_values(DoctrineHelper::insertDiff(new ArrayCollection($this->collection), $this->actualItems)->toArray())); }