summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcscale_variation002.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/tests/bcscale_variation002.phpt')
-rw-r--r--ext/bcmath/tests/bcscale_variation002.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcscale_variation002.phpt b/ext/bcmath/tests/bcscale_variation002.phpt
new file mode 100644
index 0000000000..0db6cff9f2
--- /dev/null
+++ b/ext/bcmath/tests/bcscale_variation002.phpt
@@ -0,0 +1,12 @@
+--TEST--
+bcadd() incorrect argument count
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--INI--
+bcmath.scale=-2
+--FILE--
+<?php
+echo bcadd("-4.27", "7.3");
+?>
+--EXPECTF--
+3 \ No newline at end of file