From 4654a2e80235f7b7277543f8cfe51ef292e7dc35 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 27 Sep 2014 11:43:47 +0200 Subject: [PATCH] Skip MailAddressTest::testNewFromUser on windows 1) MailAddressTest::testNewFromUser Failed asserting that two strings are equal. --- Expected +++ Actual @@ @@ -'Real name ' +'foo@bar.baz' Change-Id: I0c9724130730c39a355c22d06b2c0f0629c1d0e3 --- tests/phpunit/includes/mail/MailAddressTest.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/phpunit/includes/mail/MailAddressTest.php b/tests/phpunit/includes/mail/MailAddressTest.php index 76566eb03e..656be328ca 100644 --- a/tests/phpunit/includes/mail/MailAddressTest.php +++ b/tests/phpunit/includes/mail/MailAddressTest.php @@ -14,6 +14,9 @@ class MailAddressTest extends MediaWikiTestCase { * @covers MailAddress::newFromUser */ public function testNewFromUser() { + if ( wfIsWindows() ) { + $this->markTestSkipped( 'This test only works on non-Windows platforms' ); + } $user = $this->getMock( 'User' ); $user->expects( $this->any() )->method( 'getName' )->will( $this->returnValue( 'UserName' ) ); $user->expects( $this->any() )->method( 'getEmail' )->will( $this->returnValue( 'foo@bar.baz' ) ); -- 2.20.1