summaryrefslogtreecommitdiff
path: root/ext/bcmath/tests/bcsub_error1.phpt
diff options
context:
space:
mode:
authorWilliam Martin <wimartin@php.net>2010-03-08 15:16:51 +0000
committerWilliam Martin <wimartin@php.net>2010-03-08 15:16:51 +0000
commit5df4c81001ef0ce6a405cf0239b24cd76107ce73 (patch)
treeab1ff34b66a96f159d5820715fa3db0dca3ada88 /ext/bcmath/tests/bcsub_error1.phpt
parent0abf087552e77bb15c8aac3f437a5d914fd27ed3 (diff)
downloadphp-git-5df4c81001ef0ce6a405cf0239b24cd76107ce73.tar.gz
Add some bcmath tests
Diffstat (limited to 'ext/bcmath/tests/bcsub_error1.phpt')
-rw-r--r--ext/bcmath/tests/bcsub_error1.phpt12
1 files changed, 12 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcsub_error1.phpt b/ext/bcmath/tests/bcsub_error1.phpt
new file mode 100644
index 0000000000..51c020e785
--- /dev/null
+++ b/ext/bcmath/tests/bcsub_error1.phpt
@@ -0,0 +1,12 @@
+--TEST--
+bcsub() incorrect argument count
+--SKIPIF--
+<?php if(!extension_loaded("bcmath")) print "skip"; ?>
+--INI--
+bcmath.scale=0
+--FILE--
+<?php
+echo bcsub();
+?>
+--EXPECTF--
+Warning: bcsub() expects at least 2 parameters, 0 given in %s on line %d \ No newline at end of file