mirror of
https://github.com/danog/tgseclib.git
synced 2024-12-12 00:59:45 +01:00
de69f3b83f
Partially reverts 0305a4827c
.
22 lines
625 B
PHP
22 lines
625 B
PHP
<?php
|
|
/**
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
* @copyright 2013 Andreas Fischer
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
*/
|
|
|
|
class Unit_Crypt_AES_McryptTest extends Unit_Crypt_AES_TestCase
|
|
{
|
|
static public function setUpBeforeClass()
|
|
{
|
|
if (!extension_loaded('mcrypt')) {
|
|
self::markTestSkipped('mcrypt extension is not available.');
|
|
}
|
|
|
|
parent::setUpBeforeClass();
|
|
|
|
self::ensureConstant('CRYPT_AES_MODE', Crypt_AES::ENGINE_MCRYPT);
|
|
self::ensureConstant('CRYPT_RIJNDAEL_MODE', Crypt_Rijndael::ENGINE_MCRYPT);
|
|
}
|
|
}
|