public function ObjectNormalizerTest::testSiblingReference in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/ObjectNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\ObjectNormalizerTest::testSiblingReference()
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ ObjectNormalizerTest.php, line 416
Class
- ObjectNormalizerTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testSiblingReference() {
$serializer = new Serializer(array(
$this->normalizer,
));
$this->normalizer
->setSerializer($serializer);
$siblingHolder = new SiblingHolder();
$expected = array(
'sibling0' => array(
'coopTilleuls' => 'Les-Tilleuls.coop',
),
'sibling1' => array(
'coopTilleuls' => 'Les-Tilleuls.coop',
),
'sibling2' => array(
'coopTilleuls' => 'Les-Tilleuls.coop',
),
);
$this
->assertEquals($expected, $this->normalizer
->normalize($siblingHolder));
}