$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();
return 'L';
}
}
+
+class ObjectWithUpperCaseAttributeNames
+{
+ private $Foo = 'Foo';
+ public $Bar = 'BarBar';
+
+ public function getFoo()
+ {
+ return $this->Foo;
+ }
+}