tao-test/app/vendor/respect/validation/tests/integration/issue-805.phpt

20 lines
395 B
Plaintext
Raw Normal View History

2022-08-29 20:14:13 +02:00
--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\NestedValidationException;
use Respect\Validation\Validator as v;
try {
v::key('email', v::email()->setTemplate('WRONG EMAIL!!!!!!'))->assert(['email' => 'qwe']);
} catch (NestedValidationException $exception) {
print_r($exception->getMessages());
}
?>
--EXPECTF--
Array
(
[0] => WRONG EMAIL!!!!!!
)