mirror of
https://github.com/phpseclib/phpseclib.git
synced 2024-11-16 02:07:09 +00:00
Tests: don't set CRYPT_MODE_CIPHER to CRYPT_MODE_MCRYPT
This commit is contained in:
parent
c5f74eb3a3
commit
7e2d0147b6
@ -15,17 +15,10 @@ class Functional_Net_SFTPLargeFileTest extends PhpseclibFunctionalTestCase
|
|||||||
|
|
||||||
static public function setUpBeforeClass()
|
static public function setUpBeforeClass()
|
||||||
{
|
{
|
||||||
if (!extension_loaded('mcrypt')) {
|
if (!extension_loaded('mcrypt') && !extension_loaded('openssl')) {
|
||||||
self::markTestSkipped('This test depends on mcrypt for performance.');
|
self::markTestSkipped('This test depends on mcrypt or openssl for performance.');
|
||||||
}
|
}
|
||||||
parent::setUpBeforeClass();
|
parent::setUpBeforeClass();
|
||||||
self::ensureConstant('CRYPT_AES_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_BLOWFISH_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_DES_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_RC2_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_RC4_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_RIJNDAEL_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
self::ensureConstant('CRYPT_TWOFISH_MODE', CRYPT_MODE_MCRYPT);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function setUp()
|
public function setUp()
|
||||||
|
Loading…
Reference in New Issue
Block a user