]> git.immae.eu Git - github/shaarli/Shaarli.git/blob - tests/utils/FakeApplicationUtils.php
Merge pull request #1695 from ArthurHoaro/fix/ut-curl
[github/shaarli/Shaarli.git] / tests / utils / FakeApplicationUtils.php
1 <?php
2
3 namespace Shaarli;
4
5 use Shaarli\Helper\ApplicationUtils;
6
7 /**
8 * Fake ApplicationUtils class to avoid HTTP requests
9 */
10 class FakeApplicationUtils extends ApplicationUtils
11 {
12 public static $VERSION_CODE = '';
13
14 /**
15 * Toggle HTTP requests, allow overriding the version code
16 */
17 public static function getVersion($url, $timeout = 0)
18 {
19 return self::$VERSION_CODE;
20 }
21 }