From d937ec035012bb8b5002a4eb14a767096ab1c6e9 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Thu, 5 Feb 2026 16:24:27 +0100 Subject: [PATCH 1/2] :white_check_mark: Fix CI --- .../php-unit-tests/src/BaseTestCase/ItopTestCase.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index 09e5da455..16e8f4c35 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -14,7 +14,6 @@ use ReflectionMethod; use SetupUtils; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpKernel\KernelInterface; - use const DEBUG_BACKTRACE_IGNORE_ARGS; /** @@ -150,6 +149,17 @@ abstract class ItopTestCase extends KernelTestCase { parent::setUp(); + // Check globals + global $fItopStarted; + if (is_null($fItopStarted)) { + $fItopStarted = microtime(true); + } + + global $iItopInitialMemory; + if (is_null($iItopInitialMemory)) { + $iItopInitialMemory = memory_get_usage(true); + } + // Hack - Required the first time the Portal kernel is booted on a newly installed iTop $_ENV['COMBODO_PORTAL_BASE_ABSOLUTE_PATH'] = __DIR__.'/../../../../../env-production/itop-portal-base/portal/public/'; From 4f878536a84eade7c95e88d24d6a6633a3794fc8 Mon Sep 17 00:00:00 2001 From: Eric Espie Date: Thu, 5 Feb 2026 16:53:02 +0100 Subject: [PATCH 2/2] :white_check_mark: Fix CI --- tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index 16e8f4c35..9507f4dfa 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -14,6 +14,7 @@ use ReflectionMethod; use SetupUtils; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use Symfony\Component\HttpKernel\KernelInterface; + use const DEBUG_BACKTRACE_IGNORE_ARGS; /**