You are here

public function PropertyNormalizerTest::testNameConverterSupport 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::testNameConverterSupport()

File

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

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testNameConverterSupport() {
  $this->normalizer = new PropertyNormalizer(null, new CamelCaseToSnakeCaseNameConverter());
  $obj = $this->normalizer
    ->denormalize(array(
    'camel_case' => 'camelCase',
  ), __NAMESPACE__ . '\\PropertyDummy');
  $this
    ->assertEquals('camelCase', $obj
    ->getCamelCase());
}