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