Fix tests

This commit is contained in:
Timothy Warren 2012-05-21 15:24:36 -04:00
parent 66f914c80f
commit 000850de5c
3 changed files with 7 additions and 11 deletions

View File

@ -325,12 +325,6 @@ function init()
// Load Database classes // Load Database classes
require_once(MM_SYS_PATH . 'db/autoload.php'); require_once(MM_SYS_PATH . 'db/autoload.php');
// Load system libraries/traits
spl_autoload_register('sys_autoload');
// Start the library autoloader
spl_autoload_register('autoload');
// Map to the appropriate module/controller/function // Map to the appropriate module/controller/function
route(); route();
} }
@ -467,4 +461,10 @@ function route()
show_404(); show_404();
} }
// Load system libraries/traits
spl_autoload_register('sys_autoload');
// Start the library autoloader
spl_autoload_register('autoload');
// End of common.php // End of common.php

2
sys/db

@ -1 +1 @@
Subproject commit f555b179b4d025316bb87cfe44c18f5593507b70 Subproject commit 2c67dd03cc917bd0f83cfc53923f4e009edc39c5

View File

@ -19,10 +19,6 @@ require_once(MM_SYS_PATH . 'db/tests/index.php');
//Include src files //Include src files
require_once(MM_SYS_PATH . 'common.php'); require_once(MM_SYS_PATH . 'common.php');
require_once(MM_SYS_PATH . 'core/traits.php');
require_once(MM_SYS_PATH . 'core/MM.php');
require_once(MM_SYS_PATH . 'core/miniMVC.php');
array_map('do_include', glob(MM_SYS_PATH . 'core/*.php'));
//Include test files //Include test files
require_once('commonTest.php'); require_once('commonTest.php');