mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 02:00:06 +02:00
The `print_r()` is noisy and doesn't show values as they are in PHP, and using `VarExporter::export()` improved the output a lot. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
18 lines
312 B
PHP
18 lines
312 B
PHP
--FILE--
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
use Respect\Validation\Validator as v;
|
|
|
|
exceptionMessages(static function (): void {
|
|
v::key('email', v::email()->setTemplate('WRONG EMAIL!!!!!!'))->assert(['email' => 'qwe']);
|
|
});
|
|
?>
|
|
--EXPECT--
|
|
[
|
|
'email' => 'WRONG EMAIL!!!!!!',
|
|
]
|