blob: 39c24b219e53ba26e374d171bad113aa55d019e0 [file] [log] [blame]
Pascal Kriete69c97a72011-04-20 21:44:54 -04001<?php
2
Pascal Krietef5aee9d2011-04-21 01:20:40 -04003// Errors on full!
Pascal Kriete69c97a72011-04-20 21:44:54 -04004ini_set('display_errors', 1);
5error_reporting(E_ALL | E_STRICT);
6
Pascal Krietef5aee9d2011-04-21 01:20:40 -04007$dir = realpath(dirname(__FILE__));
Pascal Kriete69c97a72011-04-20 21:44:54 -04008
Pascal Krietef5aee9d2011-04-21 01:20:40 -04009
10// Path constants
11define('PROJECT_BASE', realpath($dir.'/../').'/');
Pascal Krietec5d93cb2011-04-21 00:58:51 -040012define('BASEPATH', PROJECT_BASE.'system/');
13define('APPPATH', PROJECT_BASE.'application/');
Taufan Aditya8749bc72012-03-11 05:43:45 +070014define('VIEWPATH', PROJECT_BASE.'');
Pascal Kriete69c97a72011-04-20 21:44:54 -040015
Pascal Krietef5aee9d2011-04-21 01:20:40 -040016
17// Prep our test environment
18require_once $dir.'/lib/common.php';
19require_once $dir.'/lib/ci_testcase.php';
20
21unset($dir);