respect-validation/tests/unit
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
..
Exceptions Update the Coding Standards 2019-02-17 19:52:26 +01:00
Helpers Apply "SlevomatCodingStandard.Classes.TraitUseDeclaration" 2019-02-09 14:17:35 +01:00
Rules Remove "IdentityCard" in favor of "PolishIdCard" 2019-05-12 00:22:45 +02:00
FactoryTest.php Improve how to customize the Factory 2019-05-12 12:24:44 +02:00
ValidatorTest.php Make PHPUnit tests final 2019-02-09 14:32:12 +01:00