aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/FakeApplicationUtils.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/utils/FakeApplicationUtils.php')
-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}