respect-validation/tests/feature/Rules
Henrique Moody 562d98d805
Refactor the NotEmpty rule
Since we have the ability to use `not` as a prefix, having rules that
validate negative behaviour makes them a bit inflexible, verbose, and
harder to understand.

This commit will refactor the `NotEmpty`, and rename it to `Falsy`. It
will no longer trim strings, because Blank does a much better job at it;
it only simulates the behaviour of PHP’s native `empty()` function.

Because `Falsy`, `Blank`, and `Undef` have similar behaviour, I created
a page to demonstrate the difference and show when the user should use
one or the other.

Assisted-by: Cursor (claude-4.5-opus-high)
2025-12-29 12:48:35 +01:00
..
AllOfTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
AlnumTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AlphaTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AlwaysInvalidTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AlwaysValidTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AnyOfTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ArrayTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ArrayValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AttributesTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
Base64Test.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BaseTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BeetwenTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BetweenExclusiveTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BlankTest.php Invert the behaviour of NotBlank 2025-12-27 17:18:30 +01:00
BoolTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BoolValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
BsnTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CallableTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CallbackTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CallTest.php Invert the behaviour of NoWhitespace 2025-12-29 09:11:01 +01:00
CharsetTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CircuitTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CnhTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CnpjTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CntrlTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ConsonantTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ContainsAnyTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ContainsTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CountableTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CountryCodeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CpfTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CreditCardTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
CurrencyCodeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DateTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DateTimeDiffTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DateTimeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DecimalTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DigitTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DirectoryTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DomainTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
EachTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
EmailTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
EmojiTest.php Refactor the NotEmoji rule 2025-12-29 11:16:25 +01:00
EndsWithTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
EqualsTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
EquivalentTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
EvenTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ExecutableTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ExistsTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ExtensionTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FactorTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FalseValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FalsyTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
FibonacciTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FileTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FilterVarTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FiniteTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FloatTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
FloatvalTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
GraphTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
GreaterThanOrEqualTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
GreaterThanTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
HetuTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
HexRgbColorTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IbanTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IdenticalTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ImageTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ImeiTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
InfiniteTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
InstanceTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
InTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IntTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IntValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IpTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IsbnTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IterableTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
IterableValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
JsonTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
KeyExistsTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
KeyOptionalTest.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
KeySetTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
KeyTest.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
LanguageCodeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LazyTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LeapDateTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LeapYearTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LengthTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LessThanOrEqualTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LessThanTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LowercaseTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
LuhnTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
MacAddressTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
MaxTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
MimetypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
MinTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
MultipleTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NamedTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
NegativeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NfeAccessKeyTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NifTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NipTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NoneOfTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NoTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NullOrTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NullTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NumberTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NumericValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ObjectTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
OddTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
OneOfTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PerfectSquareTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PeselTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PhoneTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PhplabelTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PisTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PolishIdCardTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PositiveTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PostalCodeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PrimeNumberTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PrintableTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
PropertyExistsTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
PropertyOptionalTest.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
PropertyTest.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
PunctTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ReadableTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
RegexTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ResourceTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
RomanTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
ScalarValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SizeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SlugTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SortedTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SpacedTest.php Invert the behaviour of NoWhitespace 2025-12-29 09:11:01 +01:00
SpaceTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
StartsWithTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
StringTypeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
StringValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SubsetTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SymbolicLinkTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
TemplatedTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
TimeTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
TldTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
TrueValTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UndefOrTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UndefTest.php Invert the behaviour of NotUndef 2025-12-27 18:49:46 +01:00
UniqueTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UploadedTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UppercaseTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UrlTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
UuidTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
VersionTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
VideoUrlTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
VowelTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
WhenTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
WritableTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
XdigitTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
YesTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00