respect-validation/tests/feature
Alexandre Gomes Gaigalas c523b856e7 Introduce Trimmed validator
This commit introduces the `Trimmed` validator that ensures a string
cannot start or end with a list of specific values.

The default values used are a selected list of Unicode invisible
characters.

To support this change, the StartsWith and EndsWith validators were
modified so they can also support multiple values to check for.

While StartsWith and EndsWith are more generic, and also perform
start-of-array and end-of-array kinds of checks, Trimmed is more
focused on string inputs, which tailors to a more specific use
case.
2026-03-04 16:23:25 +00:00
..
Issues Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Readme Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Transformers Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ValidatorBuilder Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
Validators Introduce Trimmed validator 2026-03-04 16:23:25 +00:00
AssertWithKeysTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AssertWithPropertiesTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AssertWithTemplatesTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DoNotRelyOnNestedValidationExceptionInterfaceForCheckTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FormatterModifierTest.php Add FormatterModifier to message rendering and expand test coverage 2026-02-10 06:07:49 +01:00
GetFullMessageShouldIncludeAllValidationMessagesInAChainTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
GetMessagesShouldIncludeAllValidationMessagesInAChainTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
GetMessagesTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
GetMessagesWithReplacementsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
HandlingNamesTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
KeysAsValidatorNamesTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NotShouldWorkWithBuilderTestTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NotWithoutRecursionTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NotWithRecursionTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ResultQueryTest.php Add wildcard support to ResultQuery::findByPath() 2026-02-08 22:43:06 +01:00
SerializableTest.php Remove mathematical, niche and deprecated validators 2026-01-30 16:08:27 +00:00
SetTemplateWithMultipleValidatorsShouldUseTemplateAsFullMessageHeaderTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SetTemplateWithMultipleValidatorsShouldUseTemplateAsMainMessageTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SetTemplateWithSingleValidatorShouldUseTemplateAsMainMessageTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
TranslatorTest.php Update translation docs 2026-02-06 17:11:34 +00:00
ValidationExceptionStackTraceTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00