Remove side-effects from test files.

This commit is contained in:
Andreas Fischer 2014-12-17 04:38:16 +01:00
parent 218f151693
commit ffb2fcab80
2 changed files with 4 additions and 4 deletions

View File

@ -9,12 +9,12 @@ use phpseclib\Crypt\AES;
use phpseclib\Crypt\Base; use phpseclib\Crypt\Base;
use phpseclib\Crypt\Rijndael; use phpseclib\Crypt\Rijndael;
require_once 'Crypt/AES.php';
abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase abstract class Unit_Crypt_AES_TestCase extends PhpseclibTestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {
include_once 'Crypt/AES.php';
parent::setUpBeforeClass(); parent::setUpBeforeClass();
self::reRequireFile('Crypt/Rijndael.php'); self::reRequireFile('Crypt/Rijndael.php');

View File

@ -5,12 +5,12 @@
* @license http://www.opensource.org/licenses/mit-license.html MIT License * @license http://www.opensource.org/licenses/mit-license.html MIT License
*/ */
require_once 'Math/BigInteger.php';
abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase abstract class Unit_Math_BigInteger_TestCase extends PhpseclibTestCase
{ {
static public function setUpBeforeClass() static public function setUpBeforeClass()
{ {
include_once 'Math/BigInteger.php';
parent::setUpBeforeClass(); parent::setUpBeforeClass();
self::reRequireFile('Math/BigInteger.php'); self::reRequireFile('Math/BigInteger.php');