$constraint =
new ConstraintWithValue(['value' => 'foo'
]);
$this->
assertEquals('foo',
$constraint->value
);
$this->
assertNull($constraint->property
);
} public function testSetUndefinedDefaultProperty() { $this->
expectException(ConstraintDefinitionException::
class);
new ConstraintB('foo'
);
} public function testRequiredOptionsMustBeDefined() { $this->
expectException(MissingOptionsException::
class);
new ConstraintC();
} public function testRequiredOptionsPassed() {