You are here

public function CompositeTest::testFailIfNoConstraint in Plug 7

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

File

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

Class

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

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testFailIfNoConstraint() {
  new ConcreteComposite(array(
    new NotNull(array(
      'groups' => 'Default',
    )),
    'NotBlank',
  ));
}