blob: 62c7d0d5266ae22af60898d389237876846d42a3 [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// Path constants
10define('PROJECT_BASE', realpath($dir.'/../').'/');
Pascal Krietec5d93cb2011-04-21 00:58:51 -040011define('BASEPATH', PROJECT_BASE.'system/');
12define('APPPATH', PROJECT_BASE.'application/');
Taufan Aditya8749bc72012-03-11 05:43:45 +070013define('VIEWPATH', PROJECT_BASE.'');
Pascal Kriete69c97a72011-04-20 21:44:54 -040014
Pascal Krietef5aee9d2011-04-21 01:20:40 -040015// Prep our test environment
Taufan Adityaca16c4f2012-03-28 15:15:30 +070016include_once $dir.'/mocks/core/common.php';
17include_once $dir.'/mocks/autoloader.php';
18spl_autoload_register('autoload');
Pascal Krietef5aee9d2011-04-21 01:20:40 -040019
20unset($dir);