$context->
addViolation('Static message',
['{{ value }}' => 'baz'
]);
return false;
}}class CallbackValidatorTest extends ConstraintValidatorTestCase
{ protected function createValidator(): CallbackValidator
{ return new CallbackValidator();
} public function testNullIsValid() { $this->validator->
validate(null,
new Callback());
$this->
assertNoViolation();
} public function testSingleMethod() {