public function ConstraintTest::testSerialize in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/validator/Tests/ConstraintTest.php \Symfony\Component\Validator\Tests\ConstraintTest::testSerialize()
File
- vendor/
symfony/ validator/ Tests/ ConstraintTest.php, line 159
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testSerialize() {
$constraint = new ConstraintA(array(
'property1' => 'foo',
'property2' => 'bar',
));
$restoredConstraint = unserialize(serialize($constraint));
$this
->assertEquals($constraint, $restoredConstraint);
}