@@ -242,7 +242,9 @@ public function testSetValueThrowsNoExceptionIfIndexNotFoundAndIndexExceptionsEn
242
242
*/
243
243
public function testSetValueThrowsExceptionIfNotArrayAccess ()
244
244
{
245
- $ this ->propertyAccessor ->setValue (new \stdClass (), '[index] ' , 'Updated ' );
245
+ $ object = new \stdClass ();
246
+
247
+ $ this ->propertyAccessor ->setValue ($ object , '[index] ' , 'Updated ' );
246
248
}
247
249
248
250
public function testSetValueUpdatesMagicSet ()
@@ -259,7 +261,9 @@ public function testSetValueUpdatesMagicSet()
259
261
*/
260
262
public function testSetValueThrowsExceptionIfThereAreMissingParameters ()
261
263
{
262
- $ this ->propertyAccessor ->setValue (new TestClass ('Bernhard ' ), 'publicAccessorWithMoreRequiredParameters ' , 'Updated ' );
264
+ $ object = new TestClass ('Bernhard ' );
265
+
266
+ $ this ->propertyAccessor ->setValue ($ object , 'publicAccessorWithMoreRequiredParameters ' , 'Updated ' );
263
267
}
264
268
265
269
/**
@@ -527,7 +531,9 @@ public function testIsWritableForReferenceChainIssue($object, $path, $value)
527
531
*/
528
532
public function testThrowTypeError ()
529
533
{
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. ' );
531
537
}
532
538
533
539
public function testSetTypeHint ()
0 commit comments