2014-08-14 17:03:01 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
2014-12-10 00:02:44 +01:00
|
|
|
* @copyright 2013 Andreas Fischer
|
2014-08-14 17:03:01 +02:00
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
|
|
|
*/
|
|
|
|
|
2014-08-14 18:09:54 +02:00
|
|
|
class Unit_Crypt_AES_McryptTest extends Unit_Crypt_AES_TestCase
|
2014-08-14 17:03:01 +02:00
|
|
|
{
|
|
|
|
static public function setUpBeforeClass()
|
|
|
|
{
|
2014-08-15 16:23:55 +02:00
|
|
|
if (!extension_loaded('mcrypt')) {
|
|
|
|
self::markTestSkipped('mcrypt extension is not available.');
|
|
|
|
}
|
|
|
|
|
2014-08-14 17:03:01 +02:00
|
|
|
parent::setUpBeforeClass();
|
|
|
|
|
2014-12-12 20:15:43 +01:00
|
|
|
self::ensureConstant('CRYPT_AES_MODE', Crypt_AES::ENGINE_MCRYPT);
|
|
|
|
self::ensureConstant('CRYPT_RIJNDAEL_MODE', Crypt_Rijndael::ENGINE_MCRYPT);
|
2014-08-14 17:03:01 +02:00
|
|
|
}
|
2014-08-14 17:31:57 +02:00
|
|
|
}
|