X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=vendor%2Fsymfony%2Fserializer%2FTests%2FMapping%2FLoader%2FYamlFileLoaderTest.php;fp=vendor%2Fsymfony%2Fserializer%2FTests%2FMapping%2FLoader%2FYamlFileLoaderTest.php;h=918af73b14d8f77feaba8cbf4e4bed0b80200309;hp=caf7f41766692440bccce79d4a18af223a793c1f;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hpb=aea91e65e895364e460983b890e295aa5d5540a5 diff --git a/vendor/symfony/serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php b/vendor/symfony/serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php index caf7f4176..918af73b1 100644 --- a/vendor/symfony/serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php +++ b/vendor/symfony/serializer/Tests/Mapping/Loader/YamlFileLoaderTest.php @@ -67,4 +67,14 @@ class YamlFileLoaderTest extends TestCase $this->assertEquals(TestClassMetadataFactory::createXmlCLassMetadata(), $this->metadata); } + + public function testMaxDepth() + { + $classMetadata = new ClassMetadata('Symfony\Component\Serializer\Tests\Fixtures\MaxDepthDummy'); + $this->loader->loadClassMetadata($classMetadata); + + $attributesMetadata = $classMetadata->getAttributesMetadata(); + $this->assertEquals(2, $attributesMetadata['foo']->getMaxDepth()); + $this->assertEquals(3, $attributesMetadata['bar']->getMaxDepth()); + } }