respect-validation/tests/integration/issue-619.phpt
Henrique Moody d3b6b74f8d
Standardize integration tests
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>
2024-02-11 21:25:09 +01:00

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