private GetSetMethodNormalizer
$normalizer;
private SerializerInterface&NormalizerInterface&MockObject
$serializer;
protected function setUp(): void
{ $this->
createNormalizer();
} private function createNormalizer(array
$defaultContext =
[]): void
{ $this->serializer =
$this->
createMock(SerializerNormalizer::
class);
$this->normalizer =
new GetSetMethodNormalizer(null, null, null, null, null,
$defaultContext);
$this->normalizer->
setSerializer($this->serializer
);
} public function testInterface() { $this->
assertInstanceOf(NormalizerInterface::
class,
$this->normalizer
);
$this->
assertInstanceOf(DenormalizerInterface::
class,
$this->normalizer
);
} public function testNormalize() {