You are here

public function ValidTest::testRejectGroupsOption in Zircon Profile 8.0

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

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

File

vendor/symfony/validator/Tests/Constraints/ValidTest.php, line 24

Class

ValidTest
@author Bernhard Schussek <bschussek@gmail.com>

Namespace

Symfony\Component\Validator\Tests\Constraints

Code

public function testRejectGroupsOption() {
  new Valid(array(
    'groups' => 'foo',
  ));
}