diff options
Diffstat (limited to 'ext/bcmath/tests/bcpowmod_error4.phpt')
-rw-r--r-- | ext/bcmath/tests/bcpowmod_error4.phpt | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/ext/bcmath/tests/bcpowmod_error4.phpt b/ext/bcmath/tests/bcpowmod_error4.phpt new file mode 100644 index 0000000000..7c2ba5012b --- /dev/null +++ b/ext/bcmath/tests/bcpowmod_error4.phpt @@ -0,0 +1,10 @@ +--TEST-- +bc_raisemod's mod can't be zero and expo can't be negative +--CREDITS-- +Gabriel Caruso (carusogabriel34@gmail.com) +--SKIPIF-- +<?php if(!extension_loaded('bcmath')) die('skip bcmath extension not loaded'); ?> +--FILE-- +<?php var_dump(bcpowmod('1', '-1', '0')); ?> +--EXPECT-- +bool(false) |