ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
bootstrap.php
Go to the documentation of this file.
1<?php
11chdir(dirname(__FILE__));
12
13setlocale(LC_ALL, 'en_US.utf8');
14
15// PHP 5.3 Compat
16date_default_timezone_set('Europe/London');
17
18// Define path to application directory
19defined('APPLICATION_PATH')
20 || define('APPLICATION_PATH', realpath(dirname(__FILE__) . '/../Classes'));
21
22// Define path to application tests directory
23defined('APPLICATION_TESTS_PATH')
24 || define('APPLICATION_TESTS_PATH', realpath(dirname(__FILE__) ));
25
26// Define application environment
27defined('APPLICATION_ENV') || define('APPLICATION_ENV', 'ci');
28
29// Ensure library/ is on include_path
30set_include_path(implode(PATH_SEPARATOR, array(
31 realpath(APPLICATION_PATH . '/../Classes'),
32 './',
33 dirname(__FILE__),
34 get_include_path(),
35)));
36
37
42echo "PHPExcel tests beginning\n";
43
44if(extension_loaded('xdebug')) {
45 echo "Xdebug extension loaded and running\n";
46 xdebug_enable();
47} else {
48 echo 'Xdebug not found, you should run the following at the command line: echo "zend_extension=/usr/lib64/php/modules/xdebug.so" > /etc/php.d/xdebug.ini' . "\n";
49}
An exception for terminatinating execution or to throw for unit testing.
defined( 'APPLICATION_ENV')||define( 'APPLICATION_ENV'
Definition: bootstrap.php:27