use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
class BicValidatorTest extends ConstraintValidatorTestCase
{ protected function createValidator(): BicValidator
{ return new BicValidator();
} public function testNullIsValid() { $this->validator->
validate(null,
new Bic());
$this->
assertNoViolation();
} public function testEmptyStringIsValid() { $this->validator->
validate('',
new Bic());
$this->
assertNoViolation();
}