Location: PHPKode > scripts > phpseclib > phpseclib-0.3.5/tests/Crypt/AES/TestCase.php
<?php
/**
 * @author     Andreas Fischer <hide@address.com>
 * @copyright  MMXIII Andreas Fischer
 * @license    http://www.opensource.org/licenses/mit-license.html  MIT License
 */

abstract class Crypt_AES_TestCase extends PhpseclibTestCase
{
	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.');
		}
	}
}
Return current item: phpseclib