From fa259fcc8ad636f437a9ba3788f750331cd3a4ae Mon Sep 17 00:00:00 2001 From: Tobias Gritschacher Date: Mon, 15 Oct 2012 12:38:10 +0200 Subject: [PATCH] Fix for SiteListTest failing on 32bit machines - this fixes an issue with test data which is a too large integer interpreted as float on 32 bit systems - see http://www.php.net/manual/de/language.types.integer.php#103506 - "On a 32-bit system, the largest value that can be held in an INT is 2147483647." Change-Id: I577dfba3b32e93535c06329ee1b4de28366a1aac --- tests/phpunit/includes/site/SiteListTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/phpunit/includes/site/SiteListTest.php b/tests/phpunit/includes/site/SiteListTest.php index c7a1934e5d..bb8367fe59 100644 --- a/tests/phpunit/includes/site/SiteListTest.php +++ b/tests/phpunit/includes/site/SiteListTest.php @@ -114,7 +114,7 @@ class SiteListTest extends MediaWikiTestCase { */ public function testHasGlobalId( $sites ) { $this->assertFalse( $sites->hasSite( 'non-existing-global-id' ) ); - $this->assertFalse( $sites->hasInternalId( 72010101010 ) ); + $this->assertFalse( $sites->hasInternalId( 720101010 ) ); if ( !$sites->isEmpty() ) { /** -- 2.20.1