You are here

public function PropertyNormalizerTest::testLegacyDenormalizeOnCamelCaseFormat in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/serializer/Tests/Normalizer/PropertyNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\PropertyNormalizerTest::testLegacyDenormalizeOnCamelCaseFormat()

@group legacy

File

vendor/symfony/serializer/Tests/Normalizer/PropertyNormalizerTest.php, line 69

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testLegacyDenormalizeOnCamelCaseFormat() {
  $this->normalizer
    ->setCamelizedAttributes(array(
    'camel_case',
  ));
  $obj = $this->normalizer
    ->denormalize(array(
    'camel_case' => 'value',
  ), __NAMESPACE__ . '\\PropertyDummy');
  $this
    ->assertEquals('value', $obj
    ->getCamelCase());
}