respect-validation/tests/library
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
..
DataProvider Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Exceptions Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00
Rules Auto-resolve exception namespaces 2020-10-04 11:26:20 +02:00
Stubs Update version of PHPStan packages 2020-07-25 22:50:59 +02:00
RuleTestCase.php Update version of PHPUnit package 2020-08-26 09:47:59 +02:00
TestCase.php Turn LICENSE file into plain/text 2019-05-23 16:21:34 +02:00