public static function setUpBeforeClass()
 {
     if (!extension_loaded('bcmath')) {
         self::markTestSkipped('BCMath extension is not available.');
     }
     parent::setUpBeforeClass();
     self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_BCMATH);
 }
 public static function setUpBeforeClass()
 {
     if (!function_exists('openssl_public_encrypt')) {
         self::markTestSkipped('openssl_public_encrypt() function is not available.');
     }
     parent::setUpBeforeClass();
     self::ensureConstant('MATH_BIGINTEGER_MODE', \phpseclib\Math\BigInteger::MODE_INTERNAL);
 }
Beispiel #3
0
 public static function setUpBeforeClass()
 {
     if (!extension_loaded('gmp')) {
         self::markTestSkipped('GNU Multiple Precision (GMP) extension is not available.');
     }
     parent::setUpBeforeClass();
     self::ensureConstant('MATH_BIGINTEGER_MODE', \phpseclib\Math\BigInteger::MODE_GMP);
 }
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_INTERNAL);
     self::ensureConstant('MATH_BIGINTEGER_OPENSSL_DISABLE', true);
 }
Beispiel #5
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::ensureConstant('MATH_BIGINTEGER_MODE', \phpseclib\Math\BigInteger::MODE_INTERNAL);
     self::ensureConstant('MATH_BIGINTEGER_OPENSSL_DISABLE', true);
 }