diff --git a/tests/Rector/Dynamic/ValueObjectRemoverRector/correct/correct2.php.inc b/tests/Rector/Dynamic/ValueObjectRemoverRector/correct/correct2.php.inc index 9d479bd2520..c962e640372 100644 --- a/tests/Rector/Dynamic/ValueObjectRemoverRector/correct/correct2.php.inc +++ b/tests/Rector/Dynamic/ValueObjectRemoverRector/correct/correct2.php.inc @@ -15,5 +15,8 @@ class ActionClass public function someFunction() { $someChildValueObject = 'value'; + + $someChildValueObject = new SomeChildOfValueObject(); + $someChildValueObject = new SomeChildOfValueObject('value', 'anotherValue'); } } diff --git a/tests/Rector/Dynamic/ValueObjectRemoverRector/wrong/wrong2.php.inc b/tests/Rector/Dynamic/ValueObjectRemoverRector/wrong/wrong2.php.inc index 227f8244aaa..3dc1c4f8bd0 100644 --- a/tests/Rector/Dynamic/ValueObjectRemoverRector/wrong/wrong2.php.inc +++ b/tests/Rector/Dynamic/ValueObjectRemoverRector/wrong/wrong2.php.inc @@ -15,5 +15,8 @@ class ActionClass public function someFunction() { $someChildValueObject = new SomeChildOfValueObject('value'); + + $someChildValueObject = new SomeChildOfValueObject(); + $someChildValueObject = new SomeChildOfValueObject('value', 'anotherValue'); } }