You are here

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

File

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

Class

PropertyNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testConstructorDenormalize() {
  $obj = $this->normalizer
    ->denormalize(array(
    'foo' => 'foo',
    'bar' => 'bar',
  ), __NAMESPACE__ . '\\PropertyConstructorDummy', 'any');
  $this
    ->assertEquals('foo', $obj
    ->getFoo());
  $this
    ->assertEquals('bar', $obj
    ->getBar());
}