public function ObjectNormalizerTest::testNameConverterSupport in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testNameConverterSupport()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ ObjectNormalizerTest.php, line 113
Class
- ObjectNormalizerTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testNameConverterSupport() {
$this->normalizer = new ObjectNormalizer(null, new CamelCaseToSnakeCaseNameConverter());
$obj = $this->normalizer
->denormalize(array(
'camel_case' => 'camelCase',
), __NAMESPACE__ . '\\ObjectDummy');
$this
->assertEquals('camelCase', $obj
->getCamelCase());
}