1
0
mirror of https://github.com/danog/tgseclib.git synced 2024-12-13 09:37:39 +01:00
tgseclib/tests/Crypt/AES/TestCase.php
2013-01-05 21:11:57 +01:00

28 lines
663 B
PHP

<?php
/**
* @author Andreas Fischer <bantu@phpbb.com>
* @copyright MMXIII Andreas Fischer
* @license http://www.opensource.org/licenses/mit-license.html MIT License
*/
abstract class Crypt_AES_TestCase extends PHPUnit_Framework_TestCase
{
static public function setUpBeforeClass()
{
require_once('Crypt/AES.php');
if (!defined('CRYPT_AES_MODE'))
{
define('CRYPT_AES_MODE', CRYPT_AES_MODE_INTERNAL);
}
}
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.');
}
}
}