Fix for SiteListTest failing on 32bit machines
authorTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Mon, 15 Oct 2012 10:38:10 +0000 (12:38 +0200)
committerTobias Gritschacher <tobias.gritschacher@wikimedia.de>
Mon, 15 Oct 2012 10:38:10 +0000 (12:38 +0200)
- 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

index c7a1934..bb8367f 100644 (file)
@@ -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() ) {
                        /**