respect-validation/tests/integration
Dylan T 3501192293
Report all errors when asserting with "Each" rule
The intention of the "assert()" method is to show all the errors that a
given input may have. The implementation of the "assert()" method in the
"Each" rule, on the other hand, only reports the first error of each
element of the input.

This commit makes "Each" show all the validation failures of each
element of the input. Also, the implementation of
"AbstractRule::check()" is simply a proxy for the "assert()" method,
and since the "Each" rule extends that class, this commit creates a
custom implementation of the "check()" method.

Co-authored-by: Henrique Moody <henriquemoody@gmail.com>
2020-05-18 21:18:13 +02:00
..
readme Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
rules Remove "IdentityCard" in favor of "PolishIdCard" 2019-05-12 00:22:45 +02:00
assert-with-attributes.phpt Apply "SlevomatCodingStandard.Namespaces.UseSpacing" 2019-02-09 14:21:04 +01:00
assert-with-keys.phpt Apply "SlevomatCodingStandard.Namespaces.UseSpacing" 2019-02-09 14:21:04 +01:00
do_not_rely_on_nested_validation_exception_interface_for_check.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
get_full_message_should_include_all_validation_messages_in_a_chain.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
get_messages.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
get_messages_should_include_all_validation_messages_in_a_chain.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
get_messages_with_replacements.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-179.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-425.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-446.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-619.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-727.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-739.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-796.phpt Apply "SlevomatCodingStandard.Namespaces.UseSpacing" 2019-02-09 14:21:04 +01:00
issue-799.phpt Apply "SlevomatCodingStandard.Functions.StaticClosure" 2019-02-09 14:13:35 +01:00
issue-805.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-1033.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
issue-1289.phpt Report all errors when asserting with "Each" rule 2020-05-18 21:18:13 +02:00
keys_as_validator_names.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
not_should_work_by_builder.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
not_with_recursion.phpt Improve message when nested "Not" rules fail 2019-04-05 23:32:31 +02:00
not_without_recursion.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
set_template_with_multiple_validators_should_use_template_as_full_message.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
set_template_with_multiple_validators_should_use_template_as_main_message.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
set_template_with_single_validator_should_use_template_as_main_message.phpt Apply "SlevomatCodingStandard.Namespaces.UnusedUses" 2019-02-09 14:14:28 +01:00
should_not_overwrite_defined_names.phpt Apply "SlevomatCodingStandard.TypeHints.DeclareStrictTypes" 2019-02-09 14:11:12 +01:00
translator-assert.phpt Improve how to customize the Factory 2019-05-12 12:24:44 +02:00
translator-check.phpt Improve how to customize the Factory 2019-05-12 12:24:44 +02:00