Subversion Repositories SmartDukaan

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
15403 manish.sha 1
<?php
2
/**
3
 * Web Access Frontend for TestSuite
4
 *
5
 * CakePHP(tm) Tests <http://book.cakephp.org/2.0/en/development/testing.html>
6
 * Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
7
 *
8
 * Licensed under The MIT License
9
 * For full copyright and license information, please see the LICENSE.txt
10
 * Redistributions of files must retain the above copyright notice
11
 *
12
 * @copyright     Copyright (c) Cake Software Foundation, Inc. (http://cakefoundation.org)
13
 * @link          http://book.cakephp.org/2.0/en/development/testing.html
14
 * @package       app.webroot
15
 * @since         CakePHP(tm) v 1.2.0.4433
16
 * @license       http://www.opensource.org/licenses/mit-license.php MIT License
17
 */
18
 
19
set_time_limit(0);
20
ini_set('display_errors', 1);
21
 
22
/**
23
 * Use the DS to separate the directories in other defines
24
 */
25
if (!defined('DS')) {
26
	define('DS', DIRECTORY_SEPARATOR);
27
}
28
 
29
/**
30
 * These defines should only be edited if you have cake installed in
31
 * a directory layout other than the way it is distributed.
32
 * When using custom settings be sure to use the DS and do not add a trailing DS.
33
 */
34
 
35
/**
36
 * The full path to the directory which holds "app", WITHOUT a trailing DS.
37
 *
38
 */
39
if (!defined('ROOT')) {
40
	define('ROOT', dirname(dirname(dirname(__FILE__))));
41
}
42
 
43
/**
44
 * The actual directory name for the "app".
45
 *
46
 */
47
if (!defined('APP_DIR')) {
48
	define('APP_DIR', basename(dirname(dirname(__FILE__))));
49
}
50
 
51
/**
52
 * The absolute path to the "Cake" directory, WITHOUT a trailing DS.
53
 *
54
 * For ease of development CakePHP uses PHP's include_path. If you
55
 * need to cannot modify your include_path, you can set this path.
56
 *
57
 * Leaving this constant undefined will result in it being defined in Cake/bootstrap.php
58
 *
59
 * The following line differs from its sibling
60
 * /lib/Cake/Console/Templates/skel/webroot/test.php
61
 */
62
//define('CAKE_CORE_INCLUDE_PATH', ROOT . DS . 'lib');
63
 
64
/**
65
 * Editing below this line should not be necessary.
66
 * Change at your own risk.
67
 *
68
 */
69
if (!defined('WEBROOT_DIR')) {
70
	define('WEBROOT_DIR', basename(dirname(__FILE__)));
71
}
72
if (!defined('WWW_ROOT')) {
73
	define('WWW_ROOT', dirname(__FILE__) . DS);
74
}
75
 
76
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
77
	if (function_exists('ini_set')) {
78
		ini_set('include_path', ROOT . DS . 'lib' . PATH_SEPARATOR . ini_get('include_path'));
79
	}
80
	if (!include 'Cake' . DS . 'bootstrap.php') {
81
		$failed = true;
82
	}
83
} else {
84
	if (!include CAKE_CORE_INCLUDE_PATH . DS . 'Cake' . DS . 'bootstrap.php') {
85
		$failed = true;
86
	}
87
}
88
if (!empty($failed)) {
89
	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);
90
}
91
 
92
if (Configure::read('debug') < 1) {
93
	throw new NotFoundException(__d('cake_dev', 'Debug setting does not allow access to this url.'));
94
}
95
 
96
require_once CAKE . 'TestSuite' . DS . 'CakeTestSuiteDispatcher.php';
97
 
98
CakeTestSuiteDispatcher::run();