respect-validation/tests/integration
Henrique Moody 2fac861aa1
Do not trigger PHP errors in the "Call" rule
This commit make sure that when the callable is executed by the "Call"
rule and PHP triggers an error, the user does not have to deal with it,
and instead the rule will throw "CallException".

Because of the many changes that were made, it didn't make sense to keep
the class "Call" extending the "AbstractRelated" class.

One thing that is a bit problematic with this rule - and with other
rules as well - is that Validation only knows details of a validation
when it fails, because of that we cannot invert the validations that
passed, meaning that the "Not" rule cannot give the proper response to
a validation that passed. This is a know issue that can only be fixed
is we provide a way for Validation do have more granularity control.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2018-08-21 01:22:38 +02:00
..
readme Rename "MaximumAge" and "MinimumAge" rules 2018-05-31 17:01:15 +02:00
rules Do not trigger PHP errors in the "Call" rule 2018-08-21 01:22:38 +02:00
assert-with-attributes.phpt Apply contribution guidelines to "StringType" rule 2018-03-09 15:56:10 +01:00
assert-with-keys.phpt Apply contribution guidelines to "StringType" rule 2018-03-09 15:56:10 +01:00
bsn_1.phpt Create integration tests for "Bsn" rule 2015-11-09 06:54:43 -02:00
bsn_2.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
bsn_3.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
do_not_rely_on_nested_validation_exception_interface_for_check.phpt Remove "ValidationExceptionInterface" 2015-10-23 09:00:31 -02:00
exception_update.phpt Refactor ValidationException 2018-05-27 16:12:05 +02:00
get_full_message_should_include_all_validation_messages_in_a_chain.phpt Apply contribution guidelines to "StringType" rule 2018-03-09 15:56:10 +01:00
get_messages.phpt Make getMessages() return the names or ids as keys 2018-05-28 08:38:30 +02:00
get_messages_should_include_all_validation_messages_in_a_chain.phpt Make getMessages() return the names or ids as keys 2018-05-28 08:38:30 +02:00
get_messages_with_replacements.phpt Make getMessages() return the names or ids as keys 2018-05-28 08:38:30 +02:00
intVal.phpt Apply contribution guidelines to "IntVal" rule 2018-06-23 21:43:05 +02:00
issue-179.phpt Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
issue-425.phpt Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
issue-446.phpt Make getMessages() return the names or ids as keys 2018-05-28 08:38:30 +02:00
issue-619.phpt Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
issue-727.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
issue-739.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
issue-796.phpt Apply contribution guidelines to "StringType" rule 2018-03-09 15:56:10 +01:00
issue-799.phpt Execute PHP-CS-Fixer 2018-08-21 01:20:54 +02:00
issue-805.phpt Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
issue-1033.phpt Fix issues after merging 1.1 2018-08-01 20:46:34 +02:00
keys_as_validator_names.phpt Rename rule "Date" to "DateTime" 2017-05-01 13:16:59 +02:00
not_should_work_by_builder.phpt Rename rule "Int" to "IntVal" 2015-10-07 11:46:57 -03:00
not_with_recursion.phpt Rename "Related" to "Child" 2018-08-02 11:18:33 +02:00
not_without_recursion.phpt Rename "Related" to "Child" 2018-08-02 11:18:33 +02:00
set_template_with_multiple_validators_should_use_template_as_full_message.phpt Fix wrong behavior when using templates 2018-07-02 07:57:21 +02:00
set_template_with_multiple_validators_should_use_template_as_main_message.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
set_template_with_single_validator_should_use_template_as_main_message.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
should_not_overwrite_defined_names.phpt Use getMessage() instead of getMainMessage() 2018-05-27 16:12:05 +02:00
translator-assert.phpt Refactor ValidationException 2018-05-27 16:12:05 +02:00
translator-check.phpt Refactor ValidationException 2018-05-27 16:12:05 +02:00