X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlFormatterTest.php;h=df54914ddb16d3d7a6ec066927344244ad96c359;hb=36171312ef0e1b9acdea876f300dca8f3ad9982e;hp=9dbfa452c8b09897a568e26834352aa66070cc59;hpb=a877f3d4114dc9570d03177930ddbfd1332f909a;p=lhc%2Fweb%2Fwiklou.git
diff --git a/tests/phpunit/includes/HtmlFormatterTest.php b/tests/phpunit/includes/HtmlFormatterTest.php
index 9dbfa452c8..df54914ddb 100644
--- a/tests/phpunit/includes/HtmlFormatterTest.php
+++ b/tests/phpunit/includes/HtmlFormatterTest.php
@@ -4,6 +4,20 @@
* @group HtmlFormatter
*/
class HtmlFormatterTest extends MediaWikiTestCase {
+
+ /**
+ * Use TidySupport to check whether we should use $wgTidyInternal.
+ *
+ * The Tidy extension in HHVM does not support error text return, so it is
+ * nominally usable, but does not pass tests which require error text from
+ * Tidy.
+ */
+ protected function setUp() {
+ parent::setUp();
+ $tidySupport = new TidySupport();
+ $this->setMwGlobals( 'wgTidyInternal', $tidySupport->isInternal() );
+ }
+
/**
* @dataProvider getHtmlData
*
@@ -100,7 +114,7 @@ class HtmlFormatterTest extends MediaWikiTestCase {
array(),
$removeTags, // Have some rules to trigger a DOM parse
),
- // https://bugzilla.wikimedia.org/show_bug.cgi?id=53086
+ // https://phabricator.wikimedia.org/T55086
array(
'Foo[1]'
. ' Bar',