public static function setUpBeforeClass()
 {
     if (extension_loaded('runkit')) {
         self::ensureConstant('MATH_BIGINTEGER_MODE', MATH_BIGINTEGER_MODE_GMP);
         self::ensureConstant('CRYPT_HASH_MODE', CRYPT_HASH_MODE_HASH);
         self::reRequireFile('Math/BigInteger.php');
         self::reRequireFile('Crypt/Hash.php');
     }
     parent::setUpBeforeClass();
 }
 public static function setUpBeforeClass()
 {
     if (extension_loaded('runkit')) {
         if (extension_loaded('gmp')) {
             self::ensureConstant('MATH_BIGINTEGER_MODE', BigInteger::MODE_GMP);
         } elseif (extension_loaded('bcmath')) {
             self::ensureConstant('MATH_BIGINTEGER_MODE', BigInteger::MODE_BCMATH);
         } else {
             self::markTestSkipped('Should have gmp or bcmath extension for functional test.');
         }
         self::reRequireFile('Math/BigInteger.php');
     }
     parent::setUpBeforeClass();
 }
예제 #3
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::reRequireFile('Math/BigInteger.php');
 }
예제 #4
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::reRequireFile('Crypt/Rijndael.php');
     self::reRequireFile('Crypt/AES.php');
 }