aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/bootstrap.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-10-13 12:05:08 +0200
committerArthurHoaro <arthur@hoa.ro>2020-10-13 12:05:08 +0200
commitb6f678a5a1d15acf284ebcec16c905e976671ce1 (patch)
tree33c7da831482ed79c44896ef19c73c72ada84f2e /tests/bootstrap.php
parentb14687036b9b800681197f51fdc47e62f0c88e2e (diff)
parent1c1520b6b98ab20201bfe15577782a52320339df (diff)
downloadShaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.gz
Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.tar.zst
Shaarli-b6f678a5a1d15acf284ebcec16c905e976671ce1.zip
Merge branch 'v0.12' into latest
Diffstat (limited to 'tests/bootstrap.php')
-rw-r--r--tests/bootstrap.php26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/bootstrap.php b/tests/bootstrap.php
index d36d73cd..2d675c9a 100644
--- a/tests/bootstrap.php
+++ b/tests/bootstrap.php
@@ -4,3 +4,29 @@ require_once 'vendor/autoload.php';
4 4
5$conf = new \Shaarli\Config\ConfigManager('tests/utils/config/configJson'); 5$conf = new \Shaarli\Config\ConfigManager('tests/utils/config/configJson');
6new \Shaarli\Languages('en', $conf); 6new \Shaarli\Languages('en', $conf);
7
8// is_iterable is only compatible with PHP 7.1+
9if (!function_exists('is_iterable')) {
10 function is_iterable($var)
11 {
12 return is_array($var) || $var instanceof \Traversable;
13 }
14}
15
16// TODO: remove this after fixing UT
17require_once 'application/bookmark/LinkUtils.php';
18require_once 'application/Utils.php';
19require_once 'application/http/UrlUtils.php';
20require_once 'application/http/HttpUtils.php';
21require_once 'tests/TestCase.php';
22require_once 'tests/container/ShaarliTestContainer.php';
23require_once 'tests/front/controller/visitor/FrontControllerMockHelper.php';
24require_once 'tests/front/controller/admin/FrontAdminControllerMockHelper.php';
25require_once 'tests/updater/DummyUpdater.php';
26require_once 'tests/utils/FakeBookmarkService.php';
27require_once 'tests/utils/FakeConfigManager.php';
28require_once 'tests/utils/ReferenceHistory.php';
29require_once 'tests/utils/ReferenceLinkDB.php';
30require_once 'tests/utils/ReferenceSessionIdHashes.php';
31
32\ReferenceSessionIdHashes::genAllHashes();