respect-validation/tests/integration/rules/numericVal.phpt
Henrique Moody 7f1eef6bf7
Improve several validation messages
I'm not a native English speaker, and the same goes for many
contributors from this library. Because of that, some messages just
don't sound very good, so I updated a lot of them.
2024-12-05 23:37:42 +01:00

15 lines
No EOL
461 B
PHP

--FILE--
<?php
require 'vendor/autoload.php';
exceptionMessage(static fn() => v::numericVal()->assert('a'));
exceptionMessage(static fn() => v::not(v::numericVal())->assert('1'));
exceptionFullMessage(static fn() => v::numericVal()->assert('a'));
exceptionFullMessage(static fn() => v::not(v::numericVal())->assert('1'));
?>
--EXPECT--
"a" must be a numeric value
"1" must not be a numeric value
- "a" must be a numeric value
- "1" must not be a numeric value