public function ConstraintTest::testMagicPropertiesAreNotAllowed

File

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

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

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