3 require_once 'vendor/autoload.php';
5 $conf = new \Shaarli\Config\
ConfigManager('tests/utils/config/configJson');
6 new \Shaarli\
Languages('en', $conf);
8 // is_iterable is only compatible with PHP 7.1+
9 if (!function_exists('is_iterable')) {
10 function is_iterable($var)
12 return is_array($var) || $var instanceof \Traversable
;
16 // TODO: remove this after fixing UT
17 require_once 'application/bookmark/LinkUtils.php';
18 require_once 'application/Utils.php';
19 require_once 'application/http/UrlUtils.php';
20 require_once 'application/http/HttpUtils.php';
21 require_once 'tests/TestCase.php';
22 require_once 'tests/container/ShaarliTestContainer.php';
23 require_once 'tests/front/controller/visitor/FrontControllerMockHelper.php';
24 require_once 'tests/front/controller/admin/FrontAdminControllerMockHelper.php';
25 require_once 'tests/updater/DummyUpdater.php';
26 require_once 'tests/utils/FakeBookmarkService.php';
27 require_once 'tests/utils/FakeConfigManager.php';
28 require_once 'tests/utils/ReferenceHistory.php';
29 require_once 'tests/utils/ReferenceLinkDB.php';
30 require_once 'tests/utils/ReferenceSessionIdHashes.php';
32 \ReferenceSessionIdHashes
::genAllHashes();
34 if (!defined('SHAARLI_MUTEX_FILE')) {
35 define('SHAARLI_MUTEX_FILE', __FILE__
);