You are here

public function MemberMetadataTest::testSerializeCollectionNotCascaded in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Mapping/MemberMetadataTest.php, line 91

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

public function testSerializeCollectionNotCascaded() {
  $this->metadata
    ->addConstraint(new Valid(array(
    'traverse' => false,
  )));
  $metadata = unserialize(serialize($this->metadata));
  $this
    ->assertEquals($this->metadata, $metadata);
}