respect-validation/tests/feature/Validators
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
..
AfterTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AllOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
AllTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AlnumTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AlphaTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AlwaysInvalidTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AlwaysValidTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AnyOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
ArrayTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ArrayValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
AttributesTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
Base64Test.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
BaseTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BeetwenTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BetweenExclusiveTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BlankTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BoolTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BoolValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
BsnTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CallableTypeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CharsetTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CnhTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CnpjTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CntrlTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ConsonantTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ContainsAnyTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ContainsCountTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
ContainsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CountableTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CountryCodeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CpfTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CreditCardTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
CurrencyCodeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DateTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DateTimeDiffTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DateTimeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DecimalTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DigitTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DirectoryTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
DomainTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
EachTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
EmailTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
EmojiTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EndsWithTest.php Introduce Trimmed validator 2026-03-04 16:23:25 +00:00
EqualsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EquivalentTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EvenTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ExecutableTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ExistsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ExtensionTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FactorTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FactoryTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FalseValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FalsyTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FileTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FiniteTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FloatTypeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FloatvalTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
FormattedTest.php Add FormatterModifier to message rendering and expand test coverage 2026-02-10 06:07:49 +01:00
FormatTest.php Add v::format() to check if data is already in a specific format 2026-02-05 16:19:11 +00:00
GraphTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
GreaterThanOrEqualTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
GreaterThanTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
HetuTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
HexRgbColorTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IbanTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
IdenticalTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ImageTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ImeiTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
InfiniteTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
InstanceTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
InTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IntTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IntValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
IpTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IsbnTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
IterableTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IterableValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
JsonTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
KeyExistsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
KeyOptionalTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
KeySetTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
KeyTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LanguageCodeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LeapDateTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LeapYearTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LengthTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LessThanOrEqualTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LessThanTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LowercaseTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
LuhnTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
MacAddressTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
MaxTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
MimetypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
MinTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
MultipleTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NamedTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NegativeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NfeAccessKeyTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NifTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NipTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NoneOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
NullOrTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NullTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NumberTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
NumericValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ObjectTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
OddTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
OneOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
PeselTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PhoneTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PisTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PolishIdCardTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PositiveTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PostalCodeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PrintableTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
PropertyExistsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PropertyOptionalTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PropertyTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PublicDomainSuffixTest.php Fix PublicSuffix validator and UpdateDomainSuffixesCommand 2026-03-04 16:23:25 +00:00
PunctTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ReadableTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
RegexTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ResourceTypeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
RomanTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SatisfiesTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ScalarValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
ShortCircuitTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
SizeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SlugTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SortedTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SpacedTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SpaceTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
StartsWithTest.php Introduce Trimmed validator 2026-03-04 16:23:25 +00:00
StringTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
StringValTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
SubsetTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SymbolicLinkTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
TemplatedTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
TimeTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
TldTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
TrimmedTest.php Introduce Trimmed validator 2026-03-04 16:23:25 +00:00
TrueValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UndefOrTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
UndefTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UniqueTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UppercaseTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
UrlTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
UuidTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
VersionTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
VowelTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
WhenTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
WritableTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00
XdigitTest.php Standardize and improve validation message templates 2026-02-03 19:58:55 +00:00