From ee643dd5874146fee287936781c96f51e3a76d85 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sun, 9 Dec 2012 11:47:03 +0100 Subject: [PATCH] Set wgHtml5/wgWellFormedXml for XmlTests Change-Id: I3cab843bad9461098cf3c6b574fb767c3267ab14 --- tests/phpunit/includes/XmlSelectTest.php | 4 ++++ tests/phpunit/includes/XmlTest.php | 2 ++ 2 files changed, 6 insertions(+) diff --git a/tests/phpunit/includes/XmlSelectTest.php b/tests/phpunit/includes/XmlSelectTest.php index 1b48ad273a..7c9cbe3b88 100644 --- a/tests/phpunit/includes/XmlSelectTest.php +++ b/tests/phpunit/includes/XmlSelectTest.php @@ -6,6 +6,10 @@ class XmlSelectTest extends MediaWikiTestCase { protected function setUp() { parent::setUp(); + $this->setMwGlobals( array( + 'wgHtml5' => true, + 'wgWellFormedXml' => true, + )); $this->select = new XmlSelect(); } protected function tearDown() { diff --git a/tests/phpunit/includes/XmlTest.php b/tests/phpunit/includes/XmlTest.php index 3cc542214a..b54731bcbc 100644 --- a/tests/phpunit/includes/XmlTest.php +++ b/tests/phpunit/includes/XmlTest.php @@ -29,6 +29,8 @@ class XmlTest extends MediaWikiTestCase { $this->setMwGlobals( array( 'wgLang' => $langObj, + 'wgHtml5' => true, + 'wgWellFormedXml' => true, ) ); } -- 2.20.1