resourceloader: Mark clearCache() as private (only for tests)
authorTimo Tijhof <krinklemail@gmail.com>
Sat, 22 Sep 2018 16:45:18 +0000 (17:45 +0100)
committerTimo Tijhof <krinklemail@gmail.com>
Sat, 22 Sep 2018 16:45:18 +0000 (17:45 +0100)
Exclude from coverage report as well.

Change-Id: I5281b42dab802d5a5a58ee33a3b12a77229503c8

includes/resourceloader/ResourceLoader.php

index 604a140..052c5b3 100644 (file)
@@ -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;