diff --git a/tests/integration/PHP8/ConstructorPromotionTest.php b/tests/integration/PHP8/ConstructorPromotionTest.php index d14b435a..c3a24601 100644 --- a/tests/integration/PHP8/ConstructorPromotionTest.php +++ b/tests/integration/PHP8/ConstructorPromotionTest.php @@ -51,15 +51,15 @@ public function testPropertiesAreCreated() : void $constructor = $this->expectedContructorMethod(); $constructor->addArgument(new Argument('name', new String_())); - $constructor->addArgument(new Argument('email', new String_(), '\'test@example.com\'')); $constructor->addArgument(new Argument('birth_date', new Object_(new Fqsen('\\' . \DateTimeImmutable::class)))); + $constructor->addArgument(new Argument('email', new String_(), '\'test@example.com\'')); self::assertEquals($constructor, $class->getMethods()['\PHP8\ConstructorPromotion::__construct()']); self::assertEquals( [ '\PHP8\ConstructorPromotion::$name' => $this->expectedNameProperty(), - '\PHP8\ConstructorPromotion::$email' => $this->expectedEmailProperty(), - '\PHP8\ConstructorPromotion::$birth_date' => $this->expectedBirthDateProperty() + '\PHP8\ConstructorPromotion::$birth_date' => $this->expectedBirthDateProperty(), + '\PHP8\ConstructorPromotion::$email' => $this->expectedEmailProperty() ], $class->getProperties() );