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

15 lines
315 B
PHP

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