You are here

public function ConstraintTest::testMagicPropertiesAreNotAllowed in Plug 7

File

lib/Symfony/validator/Symfony/Component/Validator/Tests/ConstraintTest.php, line 44

Class

ConstraintTest

Namespace

Symfony\Component\Validator\Tests

Code

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