Merge "Fixed use of wrong callback array element"
[lhc/web/wiklou.git] / tests / phpunit / includes / GlobalFunctions / wfBaseConvertTest.php
index 21e5032..7da804e 100644 (file)
@@ -1,9 +1,8 @@
 <?php
-
 /**
- * Tests for wfBaseConvert()
+ * @covers ::wfBaseConvert
  */
-class wfBaseConvertTest extends MediaWikiTestCase {
+class WfBaseConvertTest extends MediaWikiTestCase {
        public static function provideSingleDigitConversions() {
                return array(
                        //      2    3    5    8   10   16   36
@@ -142,17 +141,18 @@ class wfBaseConvertTest extends MediaWikiTestCase {
        public static function provideNumbers() {
                $x = array();
                $chars = '0123456789abcdefghijklmnopqrstuvwxyz';
-               for( $i = 0; $i < 50; $i++ ) {
+               for ( $i = 0; $i < 50; $i++ ) {
                        $base = mt_rand( 2, 36 );
                        $len = mt_rand( 10, 100 );
 
                        $str = '';
-                       for( $j = 0; $j < $len; $j++ ) {
-                               $str .= $chars[mt_rand(0, $base - 1)];
+                       for ( $j = 0; $j < $len; $j++ ) {
+                               $str .= $chars[mt_rand( 0, $base - 1 )];
                        }
 
                        $x[] = array( $base, $str );
                }
+
                return $x;
        }