mirror of
https://github.com/Respect/Validation.git
synced 2024-06-28 02:00:06 +02:00
d3b6b74f8d
Some integration tests did not use the standard functions for testing exceptions in PHPT files. This change will make all integration tests more uniform, which will help me change the internal validation engine later. This change will also unify the integration tests for "Between" into a single file and a few other improvements. Signed-off-by: Henrique Moody <henriquemoody@gmail.com>
14 lines
253 B
PHP
14 lines
253 B
PHP
--FILE--
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require 'vendor/autoload.php';
|
|
|
|
use Respect\Validation\Validator as v;
|
|
|
|
exceptionMessage(static fn() => v::instance(stdClass::class)->setTemplate('invalid object')->assert('test'));
|
|
?>
|
|
--EXPECT--
|
|
invalid object
|