From 7f3a1811d7987d8246fa169f2289873fbec9def0 Mon Sep 17 00:00:00 2001 From: odain Date: Mon, 17 Aug 2026 13:51:50 +0200 Subject: [PATCH] =?UTF-8?q?N=C2=B09888=20-=20test=20coverage=20enhancement?= =?UTF-8?q?=20regarding=20php=20version=20checks=20during=20setup?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php b/tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php index c133c31428..9ffc2d671c 100644 --- a/tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php +++ b/tests/php-unit-tests/unitary-tests/setup/SetupUtilsTest.php @@ -174,8 +174,9 @@ class SetupUtilsTest extends ItopTestCase $this->RequireOnceItopFile('/setup/feature_removal/ModelReflectionSerializer.php'); $this->expectException(\CoreException::class); - $sDetails = sprintf('The current CLI PHP Version (%s) is lower than the minimum version required to run %s, which is (%s)', $sFoundVersion, ITOP_APPLICATION, SetupUtils::PHP_MIN_VERSION); + $sDetails = sprintf('The current CLI PHP Version (%s) is lower than the minimum version required to run %s, which is (%s). You may change the CLI PHP executable path by setting the "php_path" config parameter.', $sFoundVersion, ITOP_APPLICATION, SetupUtils::PHP_MIN_VERSION); + $this->expectException(\CoreException::class); $this->expectExceptionMessage("Data consistency check failed: $sDetails"); $this->InvokeNonPublicStaticMethod(SetupUtils::class, 'CheckCliPhpVersionFromOutput', [ModelReflectionSerializer::ERROR_LABEL, 'sPHPExec', [$sOutput]]); }