php-src/ext/bcmath/tests/bcround_error.phpt
Tim Düsterhus 5905857fd2
RFC: Add the RoundingMode enum (#14833)
see https://wiki.php.net/rfc/correctly_name_the_rounding_mode_and_make_it_an_enum

Co-authored-by: Saki Takamachi <saki@php.net>
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com>
2024-07-18 20:44:30 +02:00

21 lines
363 B
PHP

--TEST--
bcround() function with error
--EXTENSIONS--
bcmath
--FILE--
<?php
try {
bcround('hoge');
} catch (Throwable $e) {
echo $e->getMessage()."\n";
}
try {
bcround('0.00.1');
} catch (Throwable $e) {
echo $e->getMessage()."\n";
}
?>
--EXPECT--
bcround(): Argument #1 ($num) is not well-formed
bcround(): Argument #1 ($num) is not well-formed