public function GetSetMethodNormalizerTest::testUnableToNormalizeCircularReference in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Normalizer/GetSetMethodNormalizerTest.php \Symfony\Component\Serializer\Tests\Normalizer\GetSetMethodNormalizerTest::testUnableToNormalizeCircularReference()
@expectedException \Symfony\Component\Serializer\Exception\CircularReferenceException
File
- vendor/
symfony/ serializer/ Tests/ Normalizer/ GetSetMethodNormalizerTest.php, line 485
Class
Namespace
Symfony\Component\Serializer\Tests\NormalizerCode
public function testUnableToNormalizeCircularReference() {
$serializer = new Serializer(array(
$this->normalizer,
));
$this->normalizer
->setSerializer($serializer);
$this->normalizer
->setCircularReferenceLimit(2);
$obj = new CircularReferenceDummy();
$this->normalizer
->normalize($obj);
}