You are here

public function CompositeTest::testFailIfNoConstraint in Zircon Profile 8

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

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

File

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

Class

CompositeTest
@since 2.6

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

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