summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcpowmod_error1.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/bcmath/tests/bcpowmod_error1.phpt')
-rwxr-xr-xext/bcmath/tests/bcpowmod_error1.phpt13
1 files changed, 13 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcpowmod_error1.phpt b/ext/bcmath/tests/bcpowmod_error1.phpt
new file mode 100755
index 000000000..2dc292eb5
--- /dev/null
+++ b/ext/bcmath/tests/bcpowmod_error1.phpt
@@ -0,0 +1,13 @@
+--TEST--
+bcpowmod — Raise an arbitrary precision number to another, reduced by a specified modulus
+--CREDITS--
+Antoni Torrents
+antoni@solucionsinternet.com
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--FILE--
+<?php
+echo bcpowmod('1');
+?>
+--EXPECTF--
+Warning: bcpowmod() expects at least 3 parameters, 1 given in %s.php on line %d