diff --git a/src/Symfony/Component/Form/Tests/SimpleFormTest.php b/src/Symfony/Component/Form/Tests/SimpleFormTest.php index 5233a8f1aae18..32c21c8432b7a 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()
Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.
Alternative Proxies: