X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FHtmlFormatterTest.php;h=df54914ddb16d3d7a6ec066927344244ad96c359;hb=6467ad900b4799c01bbbaceb38cb7fbe309f1c53;hp=9dbfa452c8b09897a568e26834352aa66070cc59;hpb=bc91ec321a0c57d39709f996fbf9d084c77b3f91;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',