mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
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:
parent
4529f428d0
commit
2c62da69d8
2 changed files with 10 additions and 8 deletions
|
@ -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'])) {
|
||||||
|
|
|
@ -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'])) {
|
||||||
|
|
Loading…
Reference in a new issue