MyShaarli/tests/utils/FakeApplicationUtils.php
2021-04-05 11:00:28 +02:00

21 lines
419 B
PHP

<?php
namespace Shaarli\Tests\Utils;
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;
}
}