xref: /PHP-8.4/ext/bcmath/tests/bcround_error.phpt (revision 5905857f)
1--TEST--
2bcround() function with error
3--EXTENSIONS--
4bcmath
5--FILE--
6<?php
7try {
8    bcround('hoge');
9} catch (Throwable $e) {
10    echo $e->getMessage()."\n";
11}
12
13try {
14    bcround('0.00.1');
15} catch (Throwable $e) {
16    echo $e->getMessage()."\n";
17}
18?>
19--EXPECT--
20bcround(): Argument #1 ($num) is not well-formed
21bcround(): Argument #1 ($num) is not well-formed
22