/** * @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()); }
/** * @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()); }