use Symfony\Component\Validator\Constraints\UlidValidator;
use Symfony\Component\Validator\Exception\UnexpectedValueException;
use Symfony\Component\Validator\Test\ConstraintValidatorTestCase;
/**
* @author Laurent Clouet <laurent35240@gmail.com>
*/
class UlidValidatorTest extends ConstraintValidatorTestCase
{ protected function createValidator(): UlidValidator
{ return new UlidValidator();
} public function testNullIsValid() { $this->validator->
validate(null,
new Ulid());
$this->
assertNoViolation();
} public function testEmptyStringIsValid() {