respect-validation/tests
Henrique Moody 1b844763a9
Improve message when nested "Not" rules fail
When using nested "Not" and "AllOf" rules Validation does not fetch the
message of the rule that failed, and instead it fetches the default
message in "AllOfException."

That is because "Not" cannot reach the rules inside "AllOf," making it
impossible to fetch the correct message.

This commit will improve that a bit but making "Not" deal directly with
the rule inside "AllOf" when it has only one rule.

Unfortunately, it will not fix all the issues. For example, when the
negated rule is an "AllOf" with multiple rules and it fails "Not" will
fetch only the first message.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-04-05 23:32:31 +02:00
..
fixtures Update PHP support 2018-12-02 11:09:24 +01:00
integration Improve message when nested "Not" rules fail 2019-04-05 23:32:31 +02:00
library Fix the case of the "@inheritDoc" tag 2019-04-05 19:02:12 +02:00
unit Improve message when nested "Not" rules fail 2019-04-05 23:32:31 +02:00