From def39d0dd7a81a4af9ad68b62c9e9823fbc2b38e Mon Sep 17 00:00:00 2001 From: ArthurHoaro Date: Sat, 10 Aug 2019 12:31:32 +0200 Subject: Run Unit Tests against PHP 7.4 Bump PHPUnit version and fix unit test - Globals are handled differently and are persistent through tests - Tests without assertions are marked as risky: some of them are just meant to check that no error is raised. --- application/ApplicationUtils.php | 3 +++ 1 file changed, 3 insertions(+) (limited to 'application/ApplicationUtils.php') diff --git a/application/ApplicationUtils.php b/application/ApplicationUtils.php index 7fe3cb32..3aa21829 100644 --- a/application/ApplicationUtils.php +++ b/application/ApplicationUtils.php @@ -150,6 +150,8 @@ class ApplicationUtils * @param string $minVersion minimum PHP required version * @param string $curVersion current PHP version (use PHP_VERSION) * + * @return bool true on success + * * @throws Exception the PHP version is not supported */ public static function checkPHPVersion($minVersion, $curVersion) @@ -163,6 +165,7 @@ class ApplicationUtils ); throw new Exception(sprintf($msg, $minVersion)); } + return true; } /** -- cgit v1.2.3