N°6976 Fix DeprecatedCallsLog error handler never set (#576)

Caused by N°6274 (disabling error handler when running phpunit)
There is now a test testing the handler is really fixed when not in the phpunit context
Also a TRACE log is made on setting the handler
This commit is contained in:
Pierre Goiffon
2023-11-23 15:54:10 +01:00
committed by GitHub
parent e02b6ee14a
commit 6f1de11c59
4 changed files with 89 additions and 5 deletions

View File

@@ -26,8 +26,10 @@ define('ITOP_DESIGN_LATEST_VERSION', '3.0');
define('ITOP_CORE_VERSION', '3.0.3');
/**
* @since 3.0.4 N°6274 Allow to test if PHPUnit is currently running. Starting with PHPUnit 9.5 we'll be able to replace it with $GLOBALS['phpunit_version']
* @var string
* @since 3.0.4 3.1.0 3.2.0 N°6274 Allow to test if PHPUnit is currently running. Starting with PHPUnit 9.5 we'll be able to replace it with $GLOBALS['phpunit_version']
* @since 3.0.4 3.1.1 3.2.0 N°6976 Fix constant name (DeprecatedCallsLog error handler was never set)
*/
define('ITOP_PHPUNIT_RUNNING_CONSTANT_NAME', 'ITOP_PHPUNIT_RUNNING');
const ITOP_PHPUNIT_RUNNING_CONSTANT_NAME = 'ITOP_PHPUNIT_RUNNING';
require_once APPROOT.'bootstrap.inc.php';