use MaxDepthTestTrait;
use ObjectToPopulateTestTrait;
use SkipNullValuesTestTrait;
use SkipUninitializedValuesTestTrait;
use TypeEnforcementTestTrait;
private ObjectNormalizer
$normalizer;
private SerializerInterface&NormalizerInterface&MockObject
$serializer;
protected function setUp(): void
{ $this->
createNormalizer();
} private function createNormalizer(array
$defaultContext =
[], ClassMetadataFactoryInterface
$classMetadataFactory = null
): void
{ $this->serializer =
$this->
createMock(ObjectSerializerNormalizer::
class);
$this->normalizer =
new ObjectNormalizer($classMetadataFactory, null, null, null, null, null,
$defaultContext);
$this->normalizer->
setSerializer($this->serializer
);
} public function testNormalize() {