Пример #1
0
 public static function setUpBeforeClass()
 {
     if (!extension_loaded('mcrypt')) {
         self::markTestSkipped('mcrypt extension is not available.');
     }
     parent::setUpBeforeClass();
     self::ensureConstant('CRYPT_AES_MODE', CRYPT_AES_MODE_MCRYPT);
     self::ensureConstant('CRYPT_RIJNDAEL_MODE', CRYPT_RIJNDAEL_MODE_MCRYPT);
 }
Пример #2
0
 public static function setUpBeforeClass()
 {
     parent::setUpBeforeClass();
     self::ensureConstant('CRYPT_AES_MODE', CRYPT_AES_MODE_INTERNAL);
     self::ensureConstant('CRYPT_RIJNDAEL_MODE', CRYPT_RIJNDAEL_MODE_INTERNAL);
 }