Pascal Kriete | 69c97a7 | 2011-04-20 21:44:54 -0400 | [diff] [blame] | 1 | <?php |
| 2 | |
Pascal Kriete | f5aee9d | 2011-04-21 01:20:40 -0400 | [diff] [blame^] | 3 | // Errors on full! |
Pascal Kriete | 69c97a7 | 2011-04-20 21:44:54 -0400 | [diff] [blame] | 4 | ini_set('display_errors', 1); |
| 5 | error_reporting(E_ALL | E_STRICT); |
| 6 | |
Pascal Kriete | f5aee9d | 2011-04-21 01:20:40 -0400 | [diff] [blame^] | 7 | $dir = realpath(dirname(__FILE__)); |
Pascal Kriete | 69c97a7 | 2011-04-20 21:44:54 -0400 | [diff] [blame] | 8 | |
Pascal Kriete | f5aee9d | 2011-04-21 01:20:40 -0400 | [diff] [blame^] | 9 | |
| 10 | // Path constants |
| 11 | define('PROJECT_BASE', realpath($dir.'/../').'/'); |
Pascal Kriete | c5d93cb | 2011-04-21 00:58:51 -0400 | [diff] [blame] | 12 | define('BASEPATH', PROJECT_BASE.'system/'); |
| 13 | define('APPPATH', PROJECT_BASE.'application/'); |
Pascal Kriete | 69c97a7 | 2011-04-20 21:44:54 -0400 | [diff] [blame] | 14 | |
Pascal Kriete | f5aee9d | 2011-04-21 01:20:40 -0400 | [diff] [blame^] | 15 | |
| 16 | // Prep our test environment |
| 17 | require_once $dir.'/lib/common.php'; |
| 18 | require_once $dir.'/lib/ci_testcase.php'; |
| 19 | |
| 20 | unset($dir); |