diff --git a/src/Symfony/Component/Form/Tests/SimpleFormTest.php b/src/Symfony/Component/Form/Tests/SimpleFormTest.php index 5233a8f1aae1..32c21c8432b7 100644 --- a/src/Symfony/Component/Form/Tests/SimpleFormTest.php +++ b/src/Symfony/Component/Form/Tests/SimpleFormTest.php @@ -62,16 +62,16 @@ public function testGetPropertyPath($name, $propertyPath) $config = new FormConfigBuilder($name, null, $this->dispatcher); $form = new Form($config); - $this->assertEquals(new PropertyPath($propertyPath), $form->getPropertyPath()); + $this->assertEquals($propertyPath, $form->getPropertyPath()); } public function provideFormNames() { yield [null, null]; yield ['', null]; - yield ['0', '0']; - yield [0, '0']; - yield ['name', 'name']; + yield ['0', new PropertyPath('0')]; + yield [0, new PropertyPath('0')]; + yield ['name', new PropertyPath('name')]; } public function testDataIsInitializedToConfiguredValue()