Merge "resourceloader: Mark clearCache() as private (only for tests)"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Mon, 24 Sep 2018 20:50:19 +0000 (20:50 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Mon, 24 Sep 2018 20:50:19 +0000 (20:50 +0000)
includes/resourceloader/ResourceLoader.php

index 5621dcd..fe9ba74 100644 (file)
@@ -1584,6 +1584,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;