public function ConstraintTest::testSetNotExistingPropertyThrowsException

File

drupal/core/vendor/symfony/validator/Symfony/Component/Validator/Tests/ConstraintTest.php, line 32

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

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