From dfc47317052f2523218ca24781385a13117668b8 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Sat, 22 Sep 2018 17:45:18 +0100 Subject: [PATCH] resourceloader: Mark clearCache() as private (only for tests) Exclude from coverage report as well. Change-Id: I5281b42dab802d5a5a58ee33a3b12a77229503c8 --- includes/resourceloader/ResourceLoader.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/includes/resourceloader/ResourceLoader.php b/includes/resourceloader/ResourceLoader.php index 604a140de5..052c5b3b23 100644 --- a/includes/resourceloader/ResourceLoader.php +++ b/includes/resourceloader/ResourceLoader.php @@ -1583,6 +1583,9 @@ MESSAGE; * Global state and $wgRequest are evil, but we're using it right * now and sometimes we need to be able to force ResourceLoader to * re-evaluate the context because it has changed (e.g. in the test suite). + * + * @internal For use by unit tests + * @codeCoverageIgnore */ public static function clearCache() { self::$debugMode = null; -- 2.20.1