You are here

public function MemberMetadataTest::testSerializeCollectionCascaded in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php \Symfony\Component\Validator\Tests\Mapping\MemberMetadataTest::testSerializeCollectionCascaded()

File

vendor/symfony/validator/Tests/Mapping/MemberMetadataTest.php, line 79

Class

MemberMetadataTest

Namespace

Symfony\Component\Validator\Tests\Mapping

Code

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