1
0
mirror of https://github.com/silverstripe/silverstripe-cms synced 2024-10-22 06:05:56 +00:00

13 lines
413 B
PHP
Raw Permalink Normal View History

<?php
2017-01-26 09:59:25 +13:00
if (!defined('FRAMEWORK_PATH')) {
echo "FRAMEWORK_PATH hasn't been defined. This probably means that framework/Core/Constants.php hasn't been " .
"included by Composer's autoloader.\n" .
"Make sure the you are running your tests via vendor/bin/phpunit and your autoloader is up to date.\n";
exit(1);
}
if (empty($_SERVER['HTTP_HOST'])) {
2017-01-26 09:59:25 +13:00
$_SERVER['HTTP_HOST'] = 'localhost';
}