mirror of
https://github.com/Cacti/cacti.git
synced 2026-10-27 07:13:15 +09:00
* fix(tests): correct path depths after the domain reorganisation The category move left nine files resolving paths relative to their old depth, so the bootstrap could not read tests/Helpers/UnitStubs.php and no test ran at all. Signed-off-by: Thomas Vincent <thomasvincent@gmail.com> * fix tests without replacing production functions * remove unrelated failing integration tests * remove unrelated broken test workflows --------- Signed-off-by: Thomas Vincent <thomasvincent@gmail.com>
30 lines
1.6 KiB
PHP
30 lines
1.6 KiB
PHP
<?php
|
|
/*
|
|
+-------------------------------------------------------------------------+
|
|
| Copyright (C) 2004-2026 The Cacti Group |
|
|
| |
|
|
| This program is free software; you can redistribute it and/or |
|
|
| modify it under the terms of the GNU General Public License |
|
|
| as published by the Free Software Foundation; either version 2 |
|
|
| of the License, or (at your option) any later version. |
|
|
+-------------------------------------------------------------------------+
|
|
| Cacti: The Complete RRDtool-based Graphing Solution |
|
|
+-------------------------------------------------------------------------+
|
|
*/
|
|
|
|
// NOTE: The following functions are NOT stubbed here because they are defined
|
|
// elsewhere in the codebase. By NOT stubbing them, we avoid function redeclaration errors.
|
|
// - cacti_sizeof, cacti_log, cacti_strtolower, read_config_option, read_user_setting,
|
|
// cacti_count, raise_message, clean_up_lines, cacti_debug_backtrace, get_debug_prefix
|
|
// (all defined in lib/functions.php)
|
|
// - set_request_var, srv (lib/html_utility.php)
|
|
// - __esc (include/global_languages.php line 595)
|
|
//
|
|
// NOTE: The following constants are NOT stubbed here because they are defined
|
|
// in include/global_constants.php and include/global.php:
|
|
// - POLLER_VERBOSITY_DEBUG, POLLER_VERBOSITY_DEVDBG, MESSAGE_LEVEL_NONE, MESSAGE_LEVEL_ERROR
|
|
// - POLLER_ID
|
|
|
|
// Runtime functions come from Cacti itself. Per-test doubles belong in the
|
|
// test file's namespace so the unit bootstrap never replaces production APIs.
|