respect-validation/tests/integration
Henrique Moody ab602ae1bb
Improve how to customize the Factory
The constructor of "Factory" has three arguments and, even though none
of them are needed, they are all required. Those arguments allow users
to customize the namespaces of rules and exceptions, and also to define
a callable that will translate the template messages.

This commit will remove those parameters from the constructor of
"Factory," and create methods that will allow users to customize the
namespaces and the translator.

The methods that this commit will create will not change the state of
"Factory," but they will create a clone with the customizations. It is
imperative that the "Factory" is immutable. Since the "Factory" is a
Singleton, allowing it to change could cause unexpected behaviors.

Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2019-05-12 12:24:44 +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
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