Restructuring unit/integration tests

This commit is contained in:
gamonoid
2017-09-05 08:07:33 +02:00
parent a0aacba4f5
commit d793d3575b
9 changed files with 56 additions and 73605 deletions

View File

@@ -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");