take setIgnoredAttributes() deprecation into account

This commit is contained in:
Christian Flothmann 2019-04-08 13:47:38 +02:00
parent ec41d76624
commit 4134be127a

View File

@ -497,7 +497,8 @@ class ObjectNormalizerTest extends TestCase
$this->normalizer->normalize($obj, 'any')
);
$this->normalizer->setIgnoredAttributes(['foo', 'baz', 'camelCase', 'object']);
$ignoredAttributes = ['foo', 'baz', 'camelCase', 'object'];
$legacy ? $this->normalizer->setIgnoredAttributes($ignoredAttributes) : $this->createNormalizer([ObjectNormalizer::IGNORED_ATTRIBUTES => $ignoredAttributes]);
$this->assertEquals(
[