diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Author.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Author.php index efb0b43027..e54d37aacc 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Author.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Author.php @@ -4,5 +4,5 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Serialization; class Author { - public $gender; + public $eyeColor; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Person.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Person.php index 92e84fbfaf..1da3e02fa5 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Person.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Person.php @@ -4,5 +4,5 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Serialization; class Person { - public $gender; + public $eyeColor; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/author.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/author.yml index 1aa06e3153..a7f8f6fece 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/author.yml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/author.yml @@ -1,4 +1,4 @@ Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Serialization\Author: attributes: - gender: + eyeColor: groups: ['group1', 'group2'] diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/person.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/person.xml index 89e36afbe4..24f63bf09f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/person.xml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Serialization/Resources/person.xml @@ -5,7 +5,7 @@ http://symfony.com/schema/dic/serializer-mapping/serializer-mapping-1.0.xsd" > - + group1 group2 diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Author.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Author.php index 2a6b48ab4e..b02ba30c24 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Author.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Author.php @@ -4,5 +4,5 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation; class Author { - public $gender; + public $eyeColor; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Person.php b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Person.php index 104a4a524b..b8543ba442 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Person.php +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Person.php @@ -4,5 +4,5 @@ namespace Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation; class Person { - public $gender; + public $eyeColor; } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/author.yml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/author.yml index fb03191d7d..62d42b288a 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/author.yml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/author.yml @@ -1,4 +1,4 @@ Symfony\Bundle\FrameworkBundle\Tests\Fixtures\Validation\Author: properties: - gender: - - Choice: { choices: [male, female, other], message: Choose a valid gender. } + eyeColor: + - Choice: { choices: [brown, green, blue], message: Choose a valid eye color. } diff --git a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/person.xml b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/person.xml index f58be2dc6c..f3adc3c90f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/person.xml +++ b/src/Symfony/Bundle/FrameworkBundle/Tests/Fixtures/Validation/Resources/person.xml @@ -4,14 +4,14 @@ xsi:schemaLocation="http://symfony.com/schema/dic/constraint-mapping http://symfony.com/schema/dic/constraint-mapping/constraint-mapping-1.0.xsd"> - + - + diff --git a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php index 509ba0c5ca..7a6a7d3fbc 100644 --- a/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php +++ b/src/Symfony/Component/Serializer/Tests/Encoder/XmlEncoderTest.php @@ -190,11 +190,11 @@ XML; { $array = [ '#' => 'Paul', - '@gender' => 'm', + '@eye-color' => 'brown', ]; $expected = ''."\n". - 'Paul'."\n"; + 'Paul'."\n"; $this->assertEquals($expected, $this->encoder->encode($array, 'xml')); } @@ -203,11 +203,11 @@ XML; { $array = [ 'firstname' => 'Paul', - '@gender' => 'm', + '@eye-color' => 'brown', ]; $expected = ''."\n". - 'Paul'."\n"; + 'Paul'."\n"; $this->assertEquals($expected, $this->encoder->encode($array, 'xml')); } @@ -227,11 +227,11 @@ XML; public function testEncodeScalarWithAttribute() { $array = [ - 'person' => ['@gender' => 'M', '#' => 'Peter'], + 'person' => ['@eye-color' => 'brown', '#' => 'Peter'], ]; $expected = ''."\n". - 'Peter'."\n"; + 'Peter'."\n"; $this->assertEquals($expected, $this->encoder->encode($array, 'xml')); } @@ -330,11 +330,11 @@ XML; $this->encoder->setSerializer($serializer); $array = [ - 'person' => ['@gender' => 'M', '#' => 'Peter'], + 'person' => ['@eye-color' => 'brown', '#' => 'Peter'], ]; $expected = ''."\n". - 'Peter'."\n"; + 'Peter'."\n"; $this->assertEquals($expected, $serializer->serialize($array, 'xml', $options)); } @@ -398,10 +398,10 @@ XML; public function testDecodeScalarWithAttribute() { $source = ''."\n". - 'Peter'."\n"; + 'Peter'."\n"; $expected = [ - 'person' => ['@gender' => 'M', '#' => 'Peter'], + 'person' => ['@eye-color' => 'brown', '#' => 'Peter'], ]; $this->assertEquals($expected, $this->encoder->decode($source, 'xml')); @@ -410,11 +410,11 @@ XML; public function testDecodeScalarRootAttributes() { $source = ''."\n". - 'Peter'."\n"; + 'Peter'."\n"; $expected = [ '#' => 'Peter', - '@gender' => 'M', + '@eye-color' => 'brown', ]; $this->assertEquals($expected, $this->encoder->decode($source, 'xml')); @@ -423,12 +423,12 @@ XML; public function testDecodeRootAttributes() { $source = ''."\n". - 'PeterMac Calloway'."\n"; + 'PeterMac Calloway'."\n"; $expected = [ 'firstname' => 'Peter', 'lastname' => 'Mac Calloway', - '@gender' => 'M', + '@eye-color' => 'brown', ]; $this->assertEquals($expected, $this->encoder->decode($source, 'xml'));