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(); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::reRequireFile('Math/BigInteger.php'); }
public static function setUpBeforeClass() { parent::setUpBeforeClass(); self::reRequireFile('Crypt/Rijndael.php'); self::reRequireFile('Crypt/AES.php'); }