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