1
0
mirror of https://github.com/e107inc/e107.git synced 2025-10-12 21:45:11 +02:00
Files
php-e107/tests/_bootstrap.php
Nick Liu 952c6e5890 PriorityCallbacks: Execute callbacks before Codeception's
GitPreparer now registers a "priority" register_shutdown_function
callback in order to clean up in case of a fatal error.
2018-11-01 06:57:38 -05:00

18 lines
517 B
PHP

<?php
define('PARAMS_GENERATOR', realpath(codecept_root_dir()."/lib/config.php"));
$params = include(PARAMS_GENERATOR);
$app_path = $params['app_path'] ?: codecept_root_dir()."/e107";
// Relative path
if (substr($app_path, 0, 1) !== '/')
$app_path = codecept_root_dir() . "/${app_path}";
define('APP_PATH', realpath($app_path));
define('PARAMS_SERIALIZED', serialize($params));
// Provide a way to register callbacks that execute before Codeception's
include(codecept_root_dir()."/lib/PriorityCallbacks.php");