You are here

public function CompositeTest::testFailIfExplicitNestedGroupsNotSubsetOfExplicitParentGroups in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/symfony/validator/Tests/Constraints/CompositeTest.php \Symfony\Component\Validator\Tests\Constraints\CompositeTest::testFailIfExplicitNestedGroupsNotSubsetOfExplicitParentGroups()

@expectedException \Symfony\Component\Validator\Exception\ConstraintDefinitionException

File

vendor/symfony/validator/Tests/Constraints/CompositeTest.php, line 86

Class

CompositeTest
@since 2.6

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testFailIfExplicitNestedGroupsNotSubsetOfExplicitParentGroups() {
  new ConcreteComposite(array(
    'constraints' => array(
      new NotNull(array(
        'groups' => array(
          'Default',
          'Foobar',
        ),
      )),
    ),
    'groups' => array(
      'Default',
      'Strict',
    ),
  ));
}