From: Tobias Gritschacher Date: Mon, 15 Oct 2012 10:38:10 +0000 (+0200) Subject: Fix for SiteListTest failing on 32bit machines X-Git-Tag: 1.31.0-rc.0~22020^2 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/operations/recherche.php?a=commitdiff_plain;h=fa259fcc8ad636f437a9ba3788f750331cd3a4ae;p=lhc%2Fweb%2Fwiklou.git 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 --- 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() ) { /**