respect-validation/tests/integration/rules/currencyCode_5.phpt
2015-10-22 03:22:58 -02:00

15 lines
304 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
use Respect\Validation\Exceptions\AllOfException;
use Respect\Validation\Validator as v;
try {
v::not(v::currencyCode())->assert('GBP');
} catch (AllOfException $e) {
echo $e->getFullMessage();
}
?>
--EXPECTF--
- "GBP" must not be a valid currency