aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/utils/FakeApplicationUtils.php
blob: de83d598575a9af23c335a0aa32ee770042c2399 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

namespace Shaarli;

/**
 * Fake ApplicationUtils class to avoid HTTP requests
 */
class FakeApplicationUtils extends ApplicationUtils
{
    public static $VERSION_CODE = '';

    /**
     * Toggle HTTP requests, allow overriding the version code
     */
    public static function getVersion($url, $timeout = 0)
    {
        return self::$VERSION_CODE;
    }
}