respect-validation/tests/integration/digit_3.phpt
Henrique Moody 8c9c587597 Improvements and fixes on exceptions
There were some cases when the exceptions was not displayed property
when using nested exception, this commit fix the problem and also
display messages in Markdown list.
2015-10-22 03:01:41 -02:00

15 lines
278 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Validator as v;
use Respect\Validation\Exceptions\AllOfException;
try {
v::digit()->assert('a');
} catch(AllOfException $e) {
echo $e->getFullMessage();
}
--EXPECTF--
- "a" must contain only digits (0-9)