diff options
Diffstat (limited to 'ext/bcmath/tests/bcdiv_error1.phpt')
-rw-r--r-- | ext/bcmath/tests/bcdiv_error1.phpt | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcdiv_error1.phpt b/ext/bcmath/tests/bcdiv_error1.phpt new file mode 100644 index 0000000..c69d36b --- /dev/null +++ b/ext/bcmath/tests/bcdiv_error1.phpt @@ -0,0 +1,14 @@ +--TEST-- +bcdiv — Divide two arbitrary precision numbers +--CREDITS-- +TestFest2009 +Antoni Torrents +antoni@solucionsinternet.com +--SKIPIF-- +<?php if(!extension_loaded("bcmath")) print "skip"; ?> +--FILE-- +<?php +echo bcdiv('10.99', '0'); +?> +--EXPECTF-- +Warning: bcdiv(): Division by zero in %s.php on line %d |