respect-validation/tests/integration/issue-805.phpt
Henrique Moody db11faf129
Improve output of PHPT tests
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>
2024-02-17 16:33:49 +01:00

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!!!!!!',
]