Restructuring unit/integration tests
This commit is contained in:
@@ -7,9 +7,9 @@ if(!defined('TEST_BASE_PATH')){
|
||||
//Mock Session class
|
||||
if (!class_exists('SessionUtils')) {
|
||||
class SessionUtils{
|
||||
|
||||
|
||||
public static $data;
|
||||
|
||||
|
||||
public static function getSessionObject($name){
|
||||
if(empty(self::$data)){
|
||||
self::$data = array();
|
||||
@@ -33,5 +33,8 @@ if (!class_exists('SessionUtils')) {
|
||||
|
||||
|
||||
}
|
||||
if (!class_exists('TestTemplate')) {
|
||||
include(dirname(__FILE__).'/TestTemplate.php');
|
||||
include(APP_BASE_PATH."/includes.inc.php");
|
||||
}
|
||||
|
||||
include(APP_BASE_PATH."/includes.inc.php");
|
||||
|
||||
Reference in New Issue
Block a user