public function ConstraintTest::testSerializeKeepsCustomGroups in Plug 7
File
- lib/
Symfony/ validator/ Symfony/ Component/ Validator/ Tests/ ConstraintTest.php, line 189
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testSerializeKeepsCustomGroups() {
$constraint = new ConstraintA(array(
'property1' => 'foo',
'property2' => 'bar',
'groups' => 'MyGroup',
));
$constraint = unserialize(serialize($constraint));
$this
->assertSame(array(
'MyGroup',
), $constraint->groups);
}