diff options
Diffstat (limited to 'ext/bcmath/tests/str2num_formatting.phpt')
-rw-r--r-- | ext/bcmath/tests/str2num_formatting.phpt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/ext/bcmath/tests/str2num_formatting.phpt b/ext/bcmath/tests/str2num_formatting.phpt index 83e633bdaf..dd3499804e 100644 --- a/ext/bcmath/tests/str2num_formatting.phpt +++ b/ext/bcmath/tests/str2num_formatting.phpt @@ -46,6 +46,12 @@ try { echo $e->getMessage() . PHP_EOL; } +try { + echo bcadd("1.a", "2"); +} catch (\ValueError $e) { + echo $e->getMessage() . PHP_EOL; +} + echo "\n"; echo bccomp("1", "2"),"\n"; @@ -99,6 +105,7 @@ bcadd(): Argument #1 ($num1) is not well-formed bcadd(): Argument #1 ($num1) is not well-formed bcadd(): Argument #1 ($num1) is not well-formed bcadd(): Argument #1 ($num1) is not well-formed +bcadd(): Argument #1 ($num1) is not well-formed -1 -1 |