mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
20 lines
429 B
PHP
20 lines
429 B
PHP
--CREDITS--
|
|
Henrique Moody <henriquemoody@gmail.com>
|
|
--FILE--
|
|
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once 'vendor/autoload.php';
|
|
|
|
use Respect\Validation\Exceptions\Locale\PlIdentityCardException;
|
|
use Respect\Validation\Validator as v;
|
|
|
|
try {
|
|
v::identityCard('PL')->check('AYE205411');
|
|
} catch (PlIdentityCardException $e) {
|
|
echo $e->getMessage();
|
|
}
|
|
?>
|
|
--EXPECT--
|
|
"AYE205411" must be a valid Polish Identity Card number
|