aboutsummaryrefslogblamecommitdiffhomepage
path: root/tests/utils/FakeApplicationUtils.php
blob: d5289ede2c735afcb8aceb4a14d2c7a7e5e5f9a4 (plain) (tree)
1
2
3
4
5
6



                  

                                    














                                                              
<?php

namespace Shaarli;

use Shaarli\Helper\ApplicationUtils;

/**
 * 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;
    }
}