Repository navigation
Unit tests for validation rules
Changes logs
- Add comprehensive validation tests for various rules
- Implemented NumberValidatorTest to validate numeric inputs, including valid and invalid cases, type checks, range validations, and formatting options.
- Created NumbersValidatorTest to handle arrays of numbers, delimited strings, JSON arrays, and various validation rules like min/max items and distinct values.
- Developed NumericValidatorTest for numeric inputs with specific formats, precision, and currency checks.
- Added PDFValidatorTest to validate PDF files, checking for structure, versioning, and content checks.
- Introduced PasswordValidatorTest to enforce password strength requirements, including length, character types, and common password checks.
- Established RegExpValidatorTest to validate strings against regular expressions with various options.
- Created StringValidatorTest to validate string inputs, including length, format, sanitization, and pattern matching.
- Implemented StringsValidatorTest for arrays of strings with similar validation rules as StringValidator.
- Added UrlValidatorTest to validate URLs, including scheme checks, domain restrictions, and parsing capabilities.
- Introduced TestCase class to provide a base for all tests, including setup and validator state management.
- Created ValidatorTest to validate the core functionality of the Validator class, including pattern parsing and integration with validation providers.