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