aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2018-12-03 23:58:59 +0100
committerVirtualTam <virtualtam@flibidi.net>2019-01-12 23:11:19 +0100
commit9778a1551ce708b9f421a181806412a05410f1fb (patch)
tree325e12edc2b80b99b10e07be63351d786113aee9 /tests/utils
parentbcf056c9d92e5240e645c76a4cdc8ae159693f9a (diff)
downloadShaarli-9778a1551ce708b9f421a181806412a05410f1fb.tar.gz
Shaarli-9778a1551ce708b9f421a181806412a05410f1fb.tar.zst
Shaarli-9778a1551ce708b9f421a181806412a05410f1fb.zip
namespacing: \Shaarli\ApplicationUtils
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'tests/utils')
-rw-r--r--tests/utils/FakeApplicationUtils.php19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/utils/FakeApplicationUtils.php b/tests/utils/FakeApplicationUtils.php
new file mode 100644
index 00000000..de83d598
--- /dev/null
+++ b/tests/utils/FakeApplicationUtils.php
@@ -0,0 +1,19 @@
1<?php
2
3namespace Shaarli;
4
5/**
6 * Fake ApplicationUtils class to avoid HTTP requests
7 */
8class FakeApplicationUtils extends ApplicationUtils
9{
10 public static $VERSION_CODE = '';
11
12 /**
13 * Toggle HTTP requests, allow overriding the version code
14 */
15 public static function getVersion($url, $timeout = 0)
16 {
17 return self::$VERSION_CODE;
18 }
19}