diff options
author | Gabriel Caruso <carusogabriel34@gmail.com> | 2018-02-11 23:52:54 -0200 |
---|---|---|
committer | Joe <krakjoe@php.net> | 2018-02-12 09:25:31 +0100 |
commit | 3253057021143c7336d03265682200482e5bf996 (patch) | |
tree | 0a409fbb17849850572a73188ccd14a2ab691791 /ext/bcmath | |
parent | 51f2a5803fa4f09e212fed4b14ab8b4a003d4ef5 (diff) | |
download | php-git-3253057021143c7336d03265682200482e5bf996.tar.gz |
Add test for bcpwmod
bc_raisemod's mod can't be zero and expo can't be negative
Diffstat (limited to 'ext/bcmath')
-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) |