3 * Web Access Frontend for TestSuite
7 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
8 * Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
10 * Licensed under The MIT License
11 * Redistributions of files must retain the above copyright notice
13 * @copyright Copyright 2005-2012, Cake Software Foundation, Inc. (http://cakefoundation.org)
14 * @link http://book.cakephp.org/2.0/en/development/testing.html
15 * @package app.webroot
16 * @since CakePHP(tm) v 1.2.0.4433
17 * @license MIT License (http://www.opensource.org/licenses/mit-license.php)
20 ini_set('display_errors', 1);
22 * Use the DS to separate the directories in other defines
25 define('DS', DIRECTORY_SEPARATOR);
28 * These defines should only be edited if you have cake installed in
29 * a directory layout other than the way it is distributed.
30 * When using custom settings be sure to use the DS and do not add a trailing DS.
34 * The full path to the directory which holds "app", WITHOUT a trailing DS.
37 if (!defined('ROOT')) {
38 define('ROOT', dirname(dirname(dirname(__FILE__))));
41 * The actual directory name for the "app".
44 if (!defined('APP_DIR')) {
45 define('APP_DIR', basename(dirname(dirname(__FILE__))));
49 * The absolute path to the "Cake" directory, WITHOUT a trailing DS.
51 * For ease of development CakePHP uses PHP's include_path. If you
52 * need to cannot modify your include_path, you can set this path.
54 * Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
56 //define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
59 * Editing below this line should not be necessary.
60 * Change at your own risk.
63 if (!defined('WEBROOT_DIR')) {
64 define('WEBROOT_DIR', basename(dirname(__FILE__)));
66 if (!defined('WWW_ROOT')) {
67 define('WWW_ROOT', dirname(__FILE__) . DS);
70 if (!defined('CAKE_CORE_INCLUDE_PATH')) {
71 if (function_exists('ini_set')) {
72 ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
74 if (!include ('Cake' . DS . 'bootstrap.php')) {
78 if (!include (CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php')) {
82 if (!empty($failed)) {
83 trigger_error("CakePHP core could not be found. Check the value of CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
86 if (Configure::read('debug') < 1) {
87 die(__d('cake_dev', 'Debug setting does not allow access to this url.'));
90 require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';
92 CakeTestSuiteDispatcher::run();