respect-validation/tests/unit/Rules
Henrique Moody d7dc0f2b4e
Refactor the "NullOr" rule and related classes
This commit will rename the "Nullable" rule to "NullOr" while soft
deprecating the old name. It should work the same as the previous one
but with a different name. It will also prefix the result ID, allowing
more message customization.

While working on it, I realized that the prefix "nullOr" had a typo,
and it was using "nullOf" instead. I fixed that, too.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2024-03-26 01:55:50 +01:00
..
Core Remove previous validation engine 2024-03-25 12:28:25 +01:00
AllOfTest.php Update the validation engine of composite-based rules 2024-02-23 00:56:30 +01:00
AlnumTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
AlphaTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
AlwaysInvalidTest.php Update the validation engine of simple rules 2024-02-22 17:00:55 +01:00
AlwaysValidTest.php Update the validation engine of simple rules 2024-02-22 17:00:55 +01:00
AnyOfTest.php Improve composite-based rules 2024-03-06 18:02:39 +01:00
ArrayTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ArrayValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
Base64Test.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
BaseTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
BetweenExclusiveTest.php Create BetweenExclusive rule 2024-03-11 11:57:24 +01:00
BetweenTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
BoolTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
BoolValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
BsnTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
CallableTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
CallbackTest.php Remove previous validation engine 2024-03-25 12:28:25 +01:00
CallTest.php Update validation enginer of a few rules 2024-03-07 02:57:39 +01:00
CharsetTest.php Simplify InvalidRuleConstructorException 2024-03-24 18:06:38 +01:00
CnhTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
CnpjTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ConsecutiveTest.php Replace "LazyConsecutive" with "Consecutive" 2024-03-06 23:57:49 +01:00
ConsonantTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
ContainsAnyTest.php Update the validation engine of composite-based rules 2024-02-23 00:56:30 +01:00
ContainsTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ControlTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
CountableTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
CountryCodeTest.php Simplify InvalidRuleConstructorException 2024-03-24 18:06:38 +01:00
CpfTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
CreditCardTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
CurrencyCodeTest.php Simplify InvalidRuleConstructorException 2024-03-24 18:06:38 +01:00
DateTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
DateTimeTest.php Update the validation engine of the "DateTime" rule 2024-03-24 17:16:25 +01:00
DecimalTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
DigitTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
DirectoryTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
DomainTest.php Allow to validate ArrayObject in key-related values 2024-03-08 21:36:49 +01:00
EachTest.php Update the validation engine of the "Each" rule 2024-03-03 14:45:47 +01:00
EmailTest.php Remove previous validation engine 2024-03-25 12:28:25 +01:00
EndsWithTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
EqualsTest.php Move core rules into the "Core" namespace 2024-03-03 16:12:58 +01:00
EquivalentTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
EvenTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ExecutableTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ExistsTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ExtensionTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FactorTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FalseValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FibonacciTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FileTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FilterVarTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
FiniteTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FloatTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
FloatValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
GraphTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
GreaterThanOrEqualTest.php Rename "Min" to "GreaterThanOrEqual" 2024-02-27 21:04:45 +01:00
GreaterThanTest.php Update the validation engine of comparison-based rules 2024-02-22 17:27:02 +01:00
HetuTest.php Create "Hetu" rule 2024-03-15 11:28:08 +01:00
HexRgbColorTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IbanTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IdenticalTest.php Move core rules into the "Core" namespace 2024-03-03 16:12:58 +01:00
ImageTest.php Remove previous validation engine 2024-03-25 12:28:25 +01:00
ImeiTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
InfiniteTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
InstanceTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
InTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IntTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IntValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IpTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
IsbnTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
IterableTypeTest.php Allow to validate ArrayObject in key-related values 2024-03-08 21:36:49 +01:00
IterableValTest.php Rename "IterableType" into "IterableVal" 2024-02-29 23:02:32 +01:00
JsonTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
KeyExistsTest.php Split "Key" rules 2024-03-04 00:06:18 +01:00
KeyOptionalTest.php Split "Key" rules 2024-03-04 00:06:18 +01:00
KeySetTest.php Split "Key" rules 2024-03-04 00:06:18 +01:00
KeyTest.php Split "Key" rules 2024-03-04 00:06:18 +01:00
LanguageCodeTest.php Simplify InvalidRuleConstructorException 2024-03-24 18:06:38 +01:00
LazyTest.php Create "Lazy" rule 2024-03-06 22:06:44 +01:00
LeapDateTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
LeapYearTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
LengthTest.php Refactor the Length rule 2024-03-19 15:38:29 +01:00
LessThanOrEqualTest.php Rename "Max" to "LessThanOrEqual" 2024-02-27 21:12:13 +01:00
LessThanTest.php Move core rules into the "Core" namespace 2024-03-03 16:12:58 +01:00
LowercaseTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
LuhnTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
MacAddressTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
MaxAgeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
MaxTest.php Allow to validate ArrayObject in key-related values 2024-03-08 21:36:49 +01:00
MimetypeTest.php Update validation enginer of a few rules 2024-03-07 02:57:39 +01:00
MinAgeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
MinTest.php Allow to validate ArrayObject in key-related values 2024-03-08 21:36:49 +01:00
MultipleTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NegativeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NfeAccessKeyTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NifTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NipTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NoneOfTest.php Update the validation engine of composite-based rules 2024-02-23 00:56:30 +01:00
NotBlankTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NotEmojiTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NotEmptyTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NoTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NotOptionalTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NotTest.php Prefix IDs of wrapper rule results 2024-03-26 01:23:29 +01:00
NoWhitespaceTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NullOrTest.php Refactor the "NullOr" rule and related classes 2024-03-26 01:55:50 +01:00
NullTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NumberTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
NumericValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ObjectTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
OddTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
OneOfTest.php Update the validation engine of composite-based rules 2024-02-23 00:56:30 +01:00
PerfectSquareTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PeselTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PhoneTest.php Improve Phone validation 2024-03-25 08:48:31 +01:00
PhpLabelTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PisTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PolishIdCardTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PortugueseNifTest.php Add require attributes to "PortugueseNifTest" 2024-02-22 01:51:35 +01:00
PositiveTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PostalCodeTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
PrimeNumberTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PrintableTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
PropertyExistsTest.php Split the "Property" rule 2024-03-05 00:48:31 +01:00
PropertyOptionalTest.php Split the "Property" rule 2024-03-05 00:48:31 +01:00
PropertyTest.php Split the "Property" rule 2024-03-05 00:48:31 +01:00
PublicDomainSuffixTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
PunctTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
ReadableTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
RegexTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ResourceTypeTest.php Improve how we handle data providers 2024-03-17 22:30:23 +01:00
RomanTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
ScalarValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
SizeTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
SlugTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
SortedTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
SpaceTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
StartsWithTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
StringTypeTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
StringValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
SubdivisionCodeTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
SubsetTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
SymbolicLinkTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
TimeTest.php Make proper use of exceptions in rules 2024-03-25 22:09:02 +01:00
TldTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
TrueValTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
UndefOrTest.php Refactor the "UndefOr" rule and related classes 2024-03-26 01:35:36 +01:00
UniqueTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
UploadedTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
UppercaseTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
UrlTest.php Update the validation engine of envelop-based rules 2024-02-22 18:41:09 +01:00
UuidTest.php Update the validation engine of the "Uuid" rule 2024-03-24 18:11:34 +01:00
VersionTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
VideoUrlTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
VowelTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
WhenTest.php Update validation engine 2024-02-22 16:54:44 +01:00
WritableTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00
XdigitTest.php Update the validation engine of filter-based rules 2024-02-22 17:21:49 +01:00
YesTest.php Use a single line to describe return type 2024-02-04 20:04:40 +01:00