use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
/**
* @requires extension intl
*
* @extends ConstraintValidatorTestCase<NoSuspiciousCharactersValidator>
*/
class NoSuspiciousCharactersValidatorTest extends ConstraintValidatorTestCase
{ protected function createValidator(): NoSuspiciousCharactersValidator
{ return new NoSuspiciousCharactersValidator();
} /**
* @dataProvider provideNonSuspiciousStrings
*/
public function testNonSuspiciousStrings(string
$string, array
$options =
[]) { $this->validator->
validate($string,
new NoSuspiciousCharacters($options));
$this->
assertNoViolation();
}