updating test.php

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@5546 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
gwoo 2007-08-18 20:54:38 +00:00
parent 4529f428d0
commit 2c62da69d8
2 changed files with 10 additions and 8 deletions

View file

@ -59,12 +59,13 @@ if (!defined('CORE_PATH')) {
} }
ini_set('display_errors', 1); ini_set('display_errors', 1);
require_once CORE_PATH . 'cake' . DS . 'bootstrap.php'; if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
require_once CAKE . 'basics.php'; trigger_error("Can't find CakePHP core. Check the value of CAKE_CORE_INCLUDE_PATH in app/webroot/test.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
require_once CAKE . 'config' . DS . 'paths.php'; }
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php'; require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php';
if (Configure::read('debug') < 1) { if (Configure::read('debug') < 1) {
die('Invalid url.'); die('Debug setting does not all access to this url.');
} }
if (!isset($_SERVER['SERVER_NAME'])) { if (!isset($_SERVER['SERVER_NAME'])) {

View file

@ -59,12 +59,13 @@ if (!defined('CORE_PATH')) {
} }
ini_set('display_errors', 1); ini_set('display_errors', 1);
require_once CORE_PATH . 'cake' . DS . 'bootstrap.php'; if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
require_once CAKE . 'basics.php'; trigger_error("Can't find CakePHP core. Check the value of CAKE_CORE_INCLUDE_PATH in app/webroot/test.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory.", E_USER_ERROR);
require_once CAKE . 'config' . DS . 'paths.php'; }
require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php'; require_once CAKE . 'tests' . DS . 'lib' . DS . 'test_manager.php';
if (Configure::read('debug') < 1) { if (Configure::read('debug') < 1) {
die('Invalid url.'); die('Debug setting does not all access to this url.');
} }
if (!isset($_SERVER['SERVER_NAME'])) { if (!isset($_SERVER['SERVER_NAME'])) {