You are here

public function CompositeTest::testFailIfExplicitNestedGroupsNotSubsetOfExplicitParentGroups in Plug 7

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

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/Constraints/CompositeTest.php, line 85

Class

CompositeTest
@since 2.6 @author Bernhard Schussek <bschussek@gmail.com>

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',
    ),
  ));
}