2017-05-09 18:12:15 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'vendor/autoload.php';
|
|
|
|
|
2021-04-05 11:00:28 +02:00
|
|
|
use Shaarli\Tests\Utils\ReferenceSessionIdHashes;
|
|
|
|
|
2017-05-09 18:12:15 +02:00
|
|
|
$conf = new \Shaarli\Config\ConfigManager('tests/utils/config/configJson');
|
|
|
|
new \Shaarli\Languages('en', $conf);
|
2020-01-17 21:34:12 +01:00
|
|
|
|
|
|
|
// is_iterable is only compatible with PHP 7.1+
|
|
|
|
if (!function_exists('is_iterable')) {
|
|
|
|
function is_iterable($var)
|
|
|
|
{
|
|
|
|
return is_array($var) || $var instanceof \Traversable;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-04-05 11:00:28 +02:00
|
|
|
// raw functions
|
|
|
|
require_once 'application/config/ConfigPlugin.php';
|
2020-01-17 21:34:12 +01:00
|
|
|
require_once 'application/bookmark/LinkUtils.php';
|
|
|
|
require_once 'application/http/UrlUtils.php';
|
|
|
|
require_once 'application/http/HttpUtils.php';
|
2021-04-05 11:00:28 +02:00
|
|
|
require_once 'application/Utils.php';
|
|
|
|
require_once 'application/TimeZone.php';
|
|
|
|
require_once 'tests/utils/CurlUtils.php';
|
|
|
|
require_once 'tests/utils/RainTPL.php';
|
|
|
|
|
|
|
|
// TODO: remove this after fixing UT
|
2020-09-29 14:41:40 +02:00
|
|
|
require_once 'tests/TestCase.php';
|
2020-05-20 12:43:40 +02:00
|
|
|
require_once 'tests/container/ShaarliTestContainer.php';
|
2020-05-22 13:20:31 +02:00
|
|
|
require_once 'tests/front/controller/visitor/FrontControllerMockHelper.php';
|
|
|
|
require_once 'tests/front/controller/admin/FrontAdminControllerMockHelper.php';
|
2020-07-07 10:15:56 +02:00
|
|
|
require_once 'tests/utils/FakeConfigManager.php';
|
|
|
|
require_once 'tests/utils/ReferenceHistory.php';
|
|
|
|
require_once 'tests/utils/ReferenceLinkDB.php';
|
|
|
|
|
2021-04-05 11:00:28 +02:00
|
|
|
ReferenceSessionIdHashes::genAllHashes();
|
2020-09-26 14:18:01 +02:00
|
|
|
|
|
|
|
if (!defined('SHAARLI_MUTEX_FILE')) {
|
|
|
|
define('SHAARLI_MUTEX_FILE', __FILE__);
|
|
|
|
}
|