From 31a7892e835a739b2b985367db1950b3c792a225 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 12 Jul 2011 20:05:02 +0000 Subject: [PATCH] Fixed failing XML tests (on windows) due to newline vs carriage return discrepancy...ugh --- tests/phpunit/includes/XmlSelectTest.php | 12 ++-- tests/phpunit/includes/XmlTest.php | 78 ++++++++++++------------ 2 files changed, 45 insertions(+), 45 deletions(-) diff --git a/tests/phpunit/includes/XmlSelectTest.php b/tests/phpunit/includes/XmlSelectTest.php index e86b3bdbb3..bf761e3d3a 100644 --- a/tests/phpunit/includes/XmlSelectTest.php +++ b/tests/phpunit/includes/XmlSelectTest.php @@ -79,9 +79,9 @@ class XmlSelectTest extends MediaWikiTestCase { $this->select->addOption( 'bar1' ); $this->select->addOption( 'foo2' ); $this->assertEquals( -'', $this->select->getHTML() ); +'', $this->select->getHTML() ); } /** @@ -95,9 +95,9 @@ class XmlSelectTest extends MediaWikiTestCase { $this->select->addOption( 'foo2' ); $this->select->setDefault( 'bar1' ); # setting default after adding options $this->assertEquals( -'', $this->select->getHTML() ); +'', $this->select->getHTML() ); } public function testGetAttributes() { diff --git a/tests/phpunit/includes/XmlTest.php b/tests/phpunit/includes/XmlTest.php index a7bd2659cd..fbb498d84c 100644 --- a/tests/phpunit/includes/XmlTest.php +++ b/tests/phpunit/includes/XmlTest.php @@ -100,36 +100,36 @@ class XmlTest extends MediaWikiTestCase { $this->assertEquals( - ' ', + ' ', Xml::dateMenu( 2011, 02 ), "Date menu for february 2011" ); $this->assertEquals( - ' ', + ' ', Xml::dateMenu( 2011, -1), "Date menu with negative month for 'All'" ); @@ -146,19 +146,19 @@ class XmlTest extends MediaWikiTestCase { # @todo FIXME: Please note there is no year there! $this->assertEquals( - ' ', + ' ', Xml::dateMenu( '', ''), "Date menu with neither year or month" ); -- 2.20.1