projects
/
yaffs-website
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix bug in style changes for the Use cases on the live site.
[yaffs-website]
/
vendor
/
symfony
/
serializer
/
Tests
/
Normalizer
/
ObjectNormalizerTest.php
diff --git
a/vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php
b/vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php
index c0483180dc99dd733768c2276ddf3f6863b64566..1f735cc243b94f6e82799018544c601b2ba86892 100644
(file)
--- a/
vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php
+++ b/
vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php
@@
-488,6
+488,11
@@
class ObjectNormalizerTest extends TestCase
$this->assertEquals(array('foo' => 'K'), $this->normalizer->normalize(new ObjectWithStaticPropertiesAndMethods()));
}
$this->assertEquals(array('foo' => 'K'), $this->normalizer->normalize(new ObjectWithStaticPropertiesAndMethods()));
}
+ public function testNormalizeUpperCaseAttributes()
+ {
+ $this->assertEquals(array('Foo' => 'Foo', 'Bar' => 'BarBar'), $this->normalizer->normalize(new ObjectWithUpperCaseAttributeNames()));
+ }
+
public function testNormalizeNotSerializableContext()
{
$objectDummy = new ObjectDummy();
public function testNormalizeNotSerializableContext()
{
$objectDummy = new ObjectDummy();
@@
-662,3
+667,14
@@
class ObjectWithStaticPropertiesAndMethods
return 'L';
}
}
return 'L';
}
}
+
+class ObjectWithUpperCaseAttributeNames
+{
+ private $Foo = 'Foo';
+ public $Bar = 'BarBar';
+
+ public function getFoo()
+ {
+ return $this->Foo;
+ }
+}