2013-01-03 17:47:40 +01:00
|
|
|
<?php
|
|
|
|
/**
|
2014-02-15 19:57:49 +01:00
|
|
|
* @author Andreas Fischer <bantu@phpbb.com>
|
|
|
|
* @copyright MMXIII Andreas Fischer
|
|
|
|
* @license http://www.opensource.org/licenses/mit-license.html MIT License
|
2013-01-03 17:47:40 +01:00
|
|
|
*/
|
|
|
|
|
2014-02-15 19:57:49 +01:00
|
|
|
require_once 'Crypt/AES.php';
|
|
|
|
|
2013-01-12 02:34:20 +01:00
|
|
|
abstract class Crypt_AES_TestCase extends PhpseclibTestCase
|
2013-01-03 17:47:40 +01:00
|
|
|
{
|
2014-02-15 19:57:49 +01:00
|
|
|
static public function setUpBeforeClass()
|
|
|
|
{
|
|
|
|
if (!defined('CRYPT_AES_MODE')) {
|
|
|
|
define('CRYPT_AES_MODE', CRYPT_AES_MODE_INTERNAL);
|
|
|
|
}
|
|
|
|
}
|
2013-01-03 17:47:40 +01:00
|
|
|
|
2014-02-15 19:57:49 +01:00
|
|
|
public function setUp()
|
|
|
|
{
|
|
|
|
if (defined('CRYPT_AES_MODE') && CRYPT_AES_MODE !== CRYPT_AES_MODE_INTERNAL) {
|
|
|
|
$this->markTestSkipped(
|
|
|
|
'Skipping test because CRYPT_AES_MODE is not defined as CRYPT_AES_MODE_INTERNAL.'
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
2013-01-03 17:47:40 +01:00
|
|
|
}
|