Ejemplo n.º 1
0
 /**
  * @group legacy
  */
 public function testLegacyDenormalizeOnCamelCaseFormat()
 {
     $this->iniSet('error_reporting', -1 & ~E_USER_DEPRECATED);
     $this->normalizer->setCamelizedAttributes(array('camel_case'));
     $obj = $this->normalizer->denormalize(array('camel_case' => 'camelCase'), __NAMESPACE__ . '\\ObjectDummy');
     $this->assertEquals('camelCase', $obj->getCamelCase());
 }
Ejemplo n.º 2
0
 /**
  * @group legacy
  */
 public function testLegacyDenormalizeOnCamelCaseFormat()
 {
     $this->normalizer->setCamelizedAttributes(array('camel_case'));
     $obj = $this->normalizer->denormalize(array('camel_case' => 'camelCase'), __NAMESPACE__ . '\\ObjectDummy');
     $this->assertEquals('camelCase', $obj->getCamelCase());
 }