2018-12-03 23:58:59 +01:00
|
|
|
<?php
|
|
|
|
|
2021-04-05 11:00:28 +02:00
|
|
|
namespace Shaarli\Tests\Utils;
|
2018-12-03 23:58:59 +01:00
|
|
|
|
2020-10-16 13:34:59 +02:00
|
|
|
use Shaarli\Helper\ApplicationUtils;
|
|
|
|
|
2018-12-03 23:58:59 +01:00
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
}
|