public function ConstraintTest::testAddDefaultGroupAddsGroup in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/validator/Tests/ConstraintTest.php \Symfony\Component\Validator\Tests\ConstraintTest::testAddDefaultGroupAddsGroup()
File
- vendor/
symfony/ validator/ Tests/ ConstraintTest.php, line 127
Class
Namespace
Symfony\Component\Validator\TestsCode
public function testAddDefaultGroupAddsGroup() {
$constraint = new ConstraintA(array(
'groups' => 'Default',
));
$constraint
->addImplicitGroupName('Foo');
$this
->assertEquals(array(
'Default',
'Foo',
), $constraint->groups);
}