Hard deprecate codepaths where tidy is disabled
[lhc/web/wiklou.git] / tests / parser / ParserTestRunner.php
index 12c60a7..3dee521 100644 (file)
@@ -1136,6 +1136,12 @@ class ParserTestRunner {
                } else {
                        $tidy = false;
                }
+
+               # Suppress warnings about running tests without tidy
+               Wikimedia\suppressWarnings();
+               wfDeprecated( 'disabling tidy' );
+               Wikimedia\restoreWarnings();
+
                MWTidy::setInstance( $tidy );
                $teardown[] = function () {
                        MWTidy::destroySingleton();