tao-test/app/vendor/respect/validation/tests/integration/rules/phplabel.phpt

18 lines
366 B
Plaintext
Raw Normal View History

2022-08-29 20:14:13 +02:00
--TEST--
PhpLabel rule exception should not be thrown for valid inputs
--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\AllOfException;
use Respect\Validation\Validator as v;
try {
v::phpLabel()->check('topic01');
v::phpLabel()->assert('access');
} catch (AllOfException $e) {
echo $e->getMainMessage();
}
?>
--EXPECTF--