respect-validation/tests/unit
Henrique Moody 8b2819e9f8
Auto-resolve exception namespaces
After the refactoring on the Factory class [1], to throw exceptions of a
specific rule, it is necessary to add the exception namespace of that
rule. That change makes sense when someone wants to create rules from
the Validator class, but when using rules as classes, it's not as handy.

This commit will auto-resolve exception based on the rule namespace,
just as it used to be.

[1]: 1f217dda66

Co-authored-by: Casey McLaughlin <caseyamcl@gmail.com>
Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
2020-10-04 11:26:20 +02:00
..
Exceptions Update version of PHPStan packages 2020-07-25 22:50:59 +02:00
Helpers Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Rules Check "bcmath" extension before executing tests 2020-10-04 11:21:36 +02:00
FactoryTest.php Auto-resolve exception namespaces 2020-10-04 11:26:20 +02:00
ValidatorTest.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00