mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
22 lines
580 B
PHP
22 lines
580 B
PHP
|
<?php
|
||
|
|
||
|
if(!defined('BASE_PATH')) {
|
||
|
echo "BASE_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);
|
||
|
}
|
||
|
|
||
|
|
||
|
/**
|
||
|
* This bootstraps the SilverStripe system so that phpunit can be run directly on SilverStripe tests.
|
||
|
*/
|
||
|
|
||
|
// Make sure display_errors is on
|
||
|
ini_set('display_errors', 1);
|
||
|
|
||
|
// Asset folder
|
||
|
if(!file_exists(BASE_PATH . '/assets')) {
|
||
|
mkdir(BASE_PATH . '/assets', 02775);
|
||
|
}
|