respect-validation/tests/feature
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
..
Issues Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
Message Rename StandardStringifier to ValidationStringifier 2025-12-19 17:21:57 +01:00
Readme Invert the behaviour of NoWhitespace 2025-12-29 09:11:01 +01:00
Rules Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
Transformers Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
AssertWithKeysTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
AssertWithPropertiesTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
AssertWithTemplatesTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
DoNotRelyOnNestedValidationExceptionInterfaceForCheckTest.php Invert the behaviour of NoWhitespace 2025-12-29 09:11:01 +01:00
GetFullMessageShouldIncludeAllValidationMessagesInAChainTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
GetMessagesShouldIncludeAllValidationMessagesInAChainTest.php Refactor the NotEmpty rule 2025-12-29 12:48:35 +01:00
GetMessagesTest.php Update how we handle templates 2025-12-22 14:05:55 +01:00
GetMessagesWithReplacementsTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
HandlingNamesTest.php Do not overwrite existing names 2025-12-26 14:48:23 +01:00
KeysAsValidatorNamesTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
NotShouldWorkWithBuilderTestTest.php Improve format of Pest files 2024-12-22 06:53:36 +01:00
NotWithoutRecursionTest.php Change how we're writing Pest tests 2025-12-18 14:02:33 +01:00
NotWithRecursionTest.php Bump respect/coding-standard from 4 to 5 2025-12-18 19:03:39 +01:00
SetTemplateWithMultipleValidatorsShouldUseTemplateAsFullMessageHeaderTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
SetTemplateWithMultipleValidatorsShouldUseTemplateAsMainMessageTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
SetTemplateWithSingleValidatorShouldUseTemplateAsMainMessageTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
TranslatorTest.php Replace placeholder "name" with "subject" 2025-12-26 21:30:01 +01:00
ValidationExceptionStackTraceTest.php Use a DI container to create instances of Validator 2025-12-22 13:12:04 +01:00