public function MemberMetadataTest::testSerialize in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\MemberMetadataTest::testSerialize()
File
- vendor/
symfony/ validator/ Tests/ Mapping/ MemberMetadataTest.php, line 69
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testSerialize() {
$this->metadata
->addConstraint(new ConstraintA(array(
'property1' => 'A',
)));
$this->metadata
->addConstraint(new ConstraintB(array(
'groups' => 'TestGroup',
)));
$metadata = unserialize(serialize($this->metadata));
$this
->assertEquals($this->metadata, $metadata);
}