From 59c55745541e6eeb1d2d590674281226c1307d15 Mon Sep 17 00:00:00 2001 From: Marco Pivetta Date: Fri, 11 Aug 2017 15:15:57 +0200 Subject: [PATCH] #6613 #6614 correcting broken test that isn't using objects against a `PersistentCollection` --- tests/Doctrine/Tests/ORM/PersistentCollectionTest.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/Doctrine/Tests/ORM/PersistentCollectionTest.php b/tests/Doctrine/Tests/ORM/PersistentCollectionTest.php index ac4597b15..3511272a2 100644 --- a/tests/Doctrine/Tests/ORM/PersistentCollectionTest.php +++ b/tests/Doctrine/Tests/ORM/PersistentCollectionTest.php @@ -118,10 +118,12 @@ class PersistentCollectionTest extends OrmTestCase { $this->setUpPersistentCollection(); - $this->collection->add('dummy'); - $this->collection->removeElement('dummy'); + $dummy = new \stdClass(); + + $this->collection->add($dummy); + $this->collection->removeElement($dummy); $this->collection->clear(); - $this->collection->add('dummy'); + $this->collection->add($dummy); $this->assertEquals([0], array_keys($this->collection->toArray())); } }