public function MemberMetadataTest::testSerializeCollectionCascaded in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ Mapping/ MemberMetadataTest.php, line 73
Class
Namespace
Symfony\Component\Validator\Tests\MappingCode
public function testSerializeCollectionCascaded() {
$this->metadata
->addConstraint(new Valid(array(
'traverse' => true,
'deep' => false,
)));
$metadata = unserialize(serialize($this->metadata));
$this
->assertEquals($this->metadata, $metadata);
}