You are here

public function GetSetMethodNormalizerTest::testPrivateSetter 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::testPrivateSetter()

File

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

Class

GetSetMethodNormalizerTest

Namespace

Symfony\Component\Serializer\Tests\Normalizer

Code

public function testPrivateSetter() {
  $obj = $this->normalizer
    ->denormalize(array(
    'foo' => 'foobar',
  ), __NAMESPACE__ . '\\ObjectWithPrivateSetterDummy');
  $this
    ->assertEquals('bar', $obj
    ->getFoo());
}