@@ -242,7 +242,9 @@ public function testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEn
242242 */
243243public function testSetValueThrowsExceptionIfNotArrayAccess ()
244244 {
245- $ this ->propertyAccessor ->setValue (new \stdClass (),'[index] ' ,'Updated ' );
245+ $ object =new \stdClass ();
246+
247+ $ this ->propertyAccessor ->setValue ($ object ,'[index] ' ,'Updated ' );
246248 }
247249
248250public function testSetValueUpdatesMagicSet ()
@@ -259,7 +261,9 @@ public function testSetValueUpdatesMagicSet()
259261 */
260262public function testSetValueThrowsExceptionIfThereAreMissingParameters ()
261263 {
262- $ this ->propertyAccessor ->setValue (new TestClass ('Bernhard ' ),'publicAccessorWithMoreRequiredParameters ' ,'Updated ' );
264+ $ object =new TestClass ('Bernhard ' );
265+
266+ $ this ->propertyAccessor ->setValue ($ object ,'publicAccessorWithMoreRequiredParameters ' ,'Updated ' );
263267 }
264268
265269/**
@@ -527,7 +531,9 @@ public function testIsWritableForReferenceChainIssue($object, $path, $value)
527531 */
528532public function testThrowTypeError ()
529533 {
530- $ this ->propertyAccessor ->setValue (new TypeHinted (),'date ' ,'This is a string, \DateTime expected. ' );
534+ $ object =new TypeHinted ();
535+
536+ $ this ->propertyAccessor ->setValue ($ object ,'date ' ,'This is a string, \DateTime expected. ' );
531537 }
532538
533539public function testSetTypeHint ()