respect-validation/tests/unit/Validators
Alexandre Gomes Gaigalas ec16b3d2df Refactor case sensitiveness support
This is a mid-size refactor that affects several validators.

Most prominently, the ones that had an `$identical` parameter
to deal with case sensitiveness.

This parameter was confusing, effectively making validators such
as `Contains` behave very differently for arrays versus strings.

In arrays, `$identical` meant "the same type", while it in strings
it meant "case sensitive".

That parameter was removed, and the default behavior is now to
always compare **case sensitive** and strict typing.

A document explaining how to combine other validators in order
to achieve case _insensitive_ comparisons was added.

Additionally, the `Call` validator was refactored back to be
suitable to take on the task of being a fast, quick composable
validator.

With the introduction of `Circuit`, we can shift the responsibility
of dealing with possible mismatches to the user. This kind of type
handling is demonstrated in how I refactored `Tld` to account for
the type mismatch without setting error handlers.
2026-01-30 17:11:13 +00:00
..
Core Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AllOfTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AllTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AlnumTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AlphaTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AlwaysInvalidTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AlwaysValidTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AnyOfTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ArrayTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ArrayValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
AttributesTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
Base64Test.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BaseTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BetweenExclusiveTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BetweenTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BlankTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BoolTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BoolValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
BsnTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CallableTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CallbackTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CallTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
CharsetTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CircuitTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CnhTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CnpjTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ConsonantTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00: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 Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
ControlTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CreditCardTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
CurrencyCodeTest.php Containerize sokil databases 2026-01-29 19:29:51 +00:00
DateTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DateTimeDiffTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DateTimeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DecimalTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DigitTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DirectoryTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
DomainTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EachTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EmailTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EmojiTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EndsWithTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
EqualsTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EquivalentTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
EvenTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ExecutableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ExistsTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ExtensionTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FactorTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FalseValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FalsyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FileTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FiniteTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FloatTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
FloatValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
GraphTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
GreaterThanOrEqualTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
GreaterThanTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
HetuTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
HexRgbColorTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IbanTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IdenticalTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ImageTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
InTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
IntTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IntValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IpTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IsbnTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IterableTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
IterableValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
JsonTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
KeyExistsTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
KeyOptionalTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
KeySetTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
KeyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LanguageCodeTest.php Containerize sokil databases 2026-01-29 19:29:51 +00:00
LazyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LeapDateTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LeapYearTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LengthTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LessThanOrEqualTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LessThanTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LowercaseTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
LuhnTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
MacAddressTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
MaxTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
MimetypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
MinTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
MultipleTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NegativeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NfeAccessKeyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NifTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NipTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NoneOfTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NotTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NullOrTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NullTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NumberTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
NumericValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ObjectTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
OddTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
OneOfTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PeselTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PhoneTest.php Containerize PhoneNumberUtil instance for Phone rule 2026-01-29 21:42:32 +00: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 Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PositiveTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PostalCodeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PrintableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PropertyExistsTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PropertyOptionalTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PropertyTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PublicDomainSuffixTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
PunctTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ReadableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
RegexTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ResourceTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
RomanTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
ScalarValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SizeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SlugTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SortedTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SpacedTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SpaceTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
StartsWithTest.php Refactor case sensitiveness support 2026-01-30 17:11:13 +00:00
StringTypeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
StringValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SubdivisionCodeTest.php Containerize sokil databases 2026-01-29 19:29:51 +00:00
SubsetTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
SymbolicLinkTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
TimeTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
TldTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
TrueValTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UndefOrTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UndefTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UniqueTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UppercaseTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UrlTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
UuidTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
VersionTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
VowelTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
WhenTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
WritableTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00
XdigitTest.php Introduce REUSE compliance 2026-01-21 06:28:11 +00:00