public function ConstraintTest::testSerialize in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ 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);
}