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