blob: db5ffbd52275651e7f6f4f0fcd660042fcec4f24 [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/');
Pascal Kriete69c97a72011-04-20 21:44:54 -040014
Pascal Krietef5aee9d2011-04-21 01:20:40 -040015
16// Prep our test environment
17require_once $dir.'/lib/common.php';
18require_once $dir.'/lib/ci_testcase.php';
19
Greg Akerb5679472011-04-21 14:34:31 -050020
21// Omit files in the PEAR & PHP Paths from ending up in the coverage report
22PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(PEAR_INSTALL_DIR);
23PHP_CodeCoverage_Filter::getInstance()->addDirectoryToBlacklist(PHP_LIBDIR);
24
25// Omit Tests from the coverage reports.
26// PHP_CodeCoverage_Filter::getInstance()
27
Pascal Krietef5aee9d2011-04-21 01:20:40 -040028unset($dir);