2019-02-17 21:06:06 +01:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
declare(strict_types=1);
|
|
|
|
|
|
|
|
require_once 'vendor/autoload.php';
|
|
|
|
|
|
|
|
use Respect\Validation\Validator as v;
|
|
|
|
|
2023-04-01 07:20:05 +02:00
|
|
|
exceptionMessage(static fn() => v::nip()->check('1645865778'));
|
|
|
|
exceptionMessage(static fn() => v::not(v::nip())->check('1645865777'));
|
|
|
|
exceptionFullMessage(static fn() => v::nip()->assert('1645865778'));
|
|
|
|
exceptionFullMessage(static fn() => v::not(v::nip())->assert('1645865777'));
|
2019-02-17 21:06:06 +01:00
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
"1645865778" must be a valid Polish VAT identification number
|
2019-05-11 23:40:52 +02:00
|
|
|
"1645865777" must not be a valid Polish VAT identification number
|
2019-02-17 21:06:06 +01:00
|
|
|
- "1645865778" must be a valid Polish VAT identification number
|
2019-05-11 23:40:52 +02:00
|
|
|
- "1645865777" must not be a valid Polish VAT identification number
|