Unit tests: changing the mode with runkit causes issues with static vars

This commit is contained in:
terrafrost 2014-08-01 11:01:53 -05:00
parent 11c4a62af6
commit 8d82f92d18

View File

@ -7,6 +7,15 @@
abstract class PhpseclibFunctionalTestCase extends PhpseclibTestCase
{
static public function setUpBeforeClass()
{
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();
}
/**
* @param string $variable
* @param string|null $message