PhpSpreadsheet/tests/bootstrap.php

30 lines
698 B
PHP
Raw Normal View History

<?php
/**
* @copyright Copyright (C) 2011-2014 PhpSpreadsheet. All rights reserved.
* @author Mark Baker
*/
chdir(__DIR__);
2012-11-23 10:51:34 +00:00
2012-11-25 09:33:54 +00:00
setlocale(LC_ALL, 'en_US.utf8');
// PHP 5.3 Compat
date_default_timezone_set('Europe/London');
// Define path to application directory
defined('APPLICATION_PATH')
|| define('APPLICATION_PATH', realpath(__DIR__ . '/../src'));
// Ensure library/ is on include_path
set_include_path(implode(PATH_SEPARATOR, [
realpath(APPLICATION_PATH . '/../src'),
2015-05-17 16:10:35 +00:00
'./',
__DIR__,
2015-05-17 16:10:35 +00:00
get_include_path(),
]));
if (!defined('PHPSPREADSHEET_ROOT')) {
define('PHPSPREADSHEET_ROOT', APPLICATION_PATH . '/');
}
require_once PHPSPREADSHEET_ROOT . 'Bootstrap.php';