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

17 lines
346 B
Plaintext
Raw Normal View History

2022-08-29 20:14:13 +02:00
--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\ValidationException;
use Respect\Validation\Rules\Instance;
try {
(new Instance('stdClass'))->setTemplate('invalid object')->assert('test');
} catch (ValidationException $exception) {
print_r($exception->getMainMessage());
}
?>
--EXPECTF--
invalid object