You are here

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

File

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

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testNormalize() {
  $obj = new PropertyDummy();
  $obj->foo = 'foo';
  $obj
    ->setBar('bar');
  $obj
    ->setCamelCase('camelcase');
  $this
    ->assertEquals(array(
    'foo' => 'foo',
    'bar' => 'bar',
    'camelCase' => 'camelcase',
  ), $this->normalizer
    ->normalize($obj, 'any'));
}