You are here

public function ConstraintTest::testInvalidAndRequiredOptionsPassed in Zircon Profile 8.0

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

File

vendor/symfony/validator/Tests/ConstraintTest.php, line 53

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

public function testInvalidAndRequiredOptionsPassed() {
  $this
    ->setExpectedException('Symfony\\Component\\Validator\\Exception\\InvalidOptionsException');
  new ConstraintC(array(
    'option1' => 'default',
    'foo' => 'bar',
  ));
}