protected function getSelfReferencingModel() { return new PropertyCircularReferenceDummy();
} public function testSiblingReference() { $serializer =
new Serializer([$this->normalizer
]);
$this->normalizer->
setSerializer($serializer);
$siblingHolder =
new PropertySiblingHolder();
$expected =
[ 'sibling0' =>
['coopTilleuls' => 'Les-Tilleuls.coop'
],
'sibling1' =>
['coopTilleuls' => 'Les-Tilleuls.coop'
],
'sibling2' =>
['coopTilleuls' => 'Les-Tilleuls.coop'
],
];
$this->
assertEquals($expected,
$this->normalizer->
normalize($siblingHolder));
} protected function getDenormalizerForConstructArguments(): PropertyNormalizer
{