You are here

public function GetSetMethodNormalizerTest::testDenormalize in Zircon Profile 8

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

File

vendor/symfony/serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php, line 80

Class

GetSetMethodNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testDenormalize() {
  $obj = $this->normalizer
    ->denormalize(array(
    'foo' => 'foo',
    'bar' => 'bar',
    'baz' => true,
    'fooBar' => 'foobar',
  ), __NAMESPACE__ . '\\GetSetDummy', 'any');
  $this
    ->assertEquals('foo', $obj
    ->getFoo());
  $this
    ->assertEquals('bar', $obj
    ->getBar());
  $this
    ->assertTrue($obj
    ->isBaz());
}