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

17 lines
266 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\BsnException;
use Respect\Validation\Validator as v;
try {
v::bsn()->check('acb');
} catch (BsnException $e) {
echo $e->getMainMessage();
}
?>
--EXPECTF--
"acb" must be a BSN