xref: /PHP-8.1/ext/bcmath/tests/bcdiv_error1.phpt (revision 56f90492)
1--TEST--
2bcdiv — Divide two arbitrary precision numbers
3--CREDITS--
4TestFest2009
5Antoni Torrents
6antoni@solucionsinternet.com
7--EXTENSIONS--
8bcmath
9--FILE--
10<?php
11try {
12    bcdiv('10.99', '0');
13} catch (DivisionByZeroError $ex) {
14    echo $ex->getMessage(), PHP_EOL;
15}
16?>
17--EXPECT--
18Division by zero
19