public function testSetUndefinedDefaultProperty() { $this ->setExpectedException('Symfony\\Component\\Validator\\Exception\\ConstraintDefinitionException'); new ConstraintB('foo'); }