Add test for bcpwmod

bc_raisemod's mod can't be zero and expo can't be negative
This commit is contained in:
Gabriel Caruso 2018-02-11 23:52:54 -02:00 committed by Joe
parent 51f2a5803f
commit 3253057021
No known key found for this signature in database
GPG Key ID: F9BA0ADA31CBD89E

View File

@ -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)