respect-validation/tests/unit/Validators
Alexandre Gomes Gaigalas 2600db3c74 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-02-26 10:34:53 +00:00
..
Core Rename Composite to LogicalComposite 2026-02-06 18:15:36 +01:00
AfterTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AllOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
AllTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
AlnumTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AlphaTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ArrayValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
AttributesTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
Base64Test.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BaseTest.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
BetweenTest.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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
BsnTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CallableTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CharsetTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CnhTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CnpjTest.php Add Support for Alphanumeric CNPJ 2026-02-04 13:20:30 +01:00
ConsonantTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ContainsAnyTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00: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
ControlTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CountableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CountryCodeTest.php Containerize sokil databases 2026-01-29 19:29:51 +00:00
CpfTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CreditCardTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
CurrencyCodeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DateTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DateTimeDiffTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DateTimeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DecimalTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DigitTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DirectoryTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
DomainTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EachTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
EmailTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EmojiTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
EndsWithTest.php Introduce Trimmed validator 2026-02-26 10:34:53 +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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ExistsTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ExtensionTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FalsyTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FileTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FiniteTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FloatTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FloatValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
FormattedTest.php Create "Formatted" validator 2026-02-06 20:44:26 +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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
HexRgbColorTest.php Enhance LintSpdxCommand with contributor tracking and header normalization 2026-02-03 15:23:20 +01:00
IbanTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IdenticalTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ImageTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ImeiTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
InfiniteTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IntValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IpTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IsbnTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IterableTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
IterableValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
JsonTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LeapDateTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LeapYearTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
LuhnTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
MacAddressTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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
NegativeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NfeAccessKeyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NifTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NipTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NoneOfTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
NotTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NullOrTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NullTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NumberTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
NumericValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PhoneTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PisTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PolishIdCardTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PortugueseNifTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PositiveTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PostalCodeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
PrintableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +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-02-23 12:18:57 +00:00
PunctTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ReadableTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
RegexTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ResourceTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
RomanTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SatisfiesTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
ScalarValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ShortCircuitTest.php Create ShortCircuit validator and ShortCircuitable interface 2026-02-05 17:32:42 +01:00
SizeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SlugTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SortedTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SpacedTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SpaceTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
StartsWithTest.php Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
StringTypeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
StringValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SubdivisionCodeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SubsetTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
SymbolicLinkTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
TimeTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
TldTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
TrimmedTest.php Introduce Trimmed validator 2026-02-26 10:34:53 +00:00
TrueValTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UndefOrTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01: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 Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
UrlTest.php Improve Url validator to be more strict 2026-02-02 00:26:40 +00:00
UuidTest.php Containerize Uuid optional dependencies for testability 2026-01-31 17:18:37 +00:00
VersionTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
VowelTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
WhenTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
WritableTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00
XdigitTest.php Fix SPDX headers in all files 2026-02-03 15:23:23 +01:00