public function AttributeMetadataTest::testSerialize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/serializer/Tests/Mapping/AttributeMetadataTest.php \Symfony\Component\Serializer\Tests\Mapping\AttributeMetadataTest::testSerialize()
File
- vendor/
symfony/ serializer/ Tests/ Mapping/ AttributeMetadataTest.php, line 58
Class
- AttributeMetadataTest
- @author Kévin Dunglas <dunglas@gmail.com>
Namespace
Symfony\Component\Serializer\Tests\MappingCode
public function testSerialize() {
$attributeMetadata = new AttributeMetadata('attribute');
$attributeMetadata
->addGroup('a');
$attributeMetadata
->addGroup('b');
$serialized = serialize($attributeMetadata);
$this
->assertEquals($attributeMetadata, unserialize($serialized));
}