respect-validation/tests/integration/rules/digit_5.phpt
2015-10-22 03:22:58 -02:00

15 lines
281 B
PHP

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