From: Siebrand Mazeland Date: Fri, 15 Feb 2013 10:27:48 +0000 (+0100) Subject: Update formatting X-Git-Tag: 1.31.0-rc.0~20684 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=feb9419a515b06f24a8c461a07f31a9a82cb7766;p=lhc%2Fweb%2Fwiklou.git Update formatting 7 of n. Change-Id: I07687a4381f29fd9fc73666e460f25769ed54092 --- diff --git a/tests/phpunit/languages/LanguageAmTest.php b/tests/phpunit/languages/LanguageAmTest.php index 16215c5965..9723e1e394 100644 --- a/tests/phpunit/languages/LanguageAmTest.php +++ b/tests/phpunit/languages/LanguageAmTest.php @@ -10,12 +10,12 @@ class LanguageAmTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageArTest.php b/tests/phpunit/languages/LanguageArTest.php index 17f735290f..523ee7f623 100644 --- a/tests/phpunit/languages/LanguageArTest.php +++ b/tests/phpunit/languages/LanguageArTest.php @@ -44,13 +44,15 @@ class LanguageArTest extends LanguageClassesTestCase { ), ); } + /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'zero', 'one', 'two', 'few', 'many', 'other' ); + $forms = array( 'zero', 'one', 'two', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providePlural() { - return array ( + return array( array( 'zero', 0 ), array( 'one', 1 ), array( 'two', 2 ), diff --git a/tests/phpunit/languages/LanguageBeTest.php b/tests/phpunit/languages/LanguageBeTest.php index 06ee240f4b..0144941b6e 100644 --- a/tests/phpunit/languages/LanguageBeTest.php +++ b/tests/phpunit/languages/LanguageBeTest.php @@ -10,12 +10,12 @@ class LanguageBeTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); + $forms = array( 'one', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 1 ), array( 'many', 11 ), array( 'one', 91 ), diff --git a/tests/phpunit/languages/LanguageBe_taraskTest.php b/tests/phpunit/languages/LanguageBe_taraskTest.php index ad0ef43cb4..5b246d8ed6 100644 --- a/tests/phpunit/languages/LanguageBe_taraskTest.php +++ b/tests/phpunit/languages/LanguageBe_taraskTest.php @@ -21,23 +21,26 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase { 'bug 23156: U+2019 conversion to U+0027' ); } + /** see bug 23156 & r64981 */ function testCommafy() { $this->assertEquals( '1,234,567', $this->getLang()->commafy( '1234567' ) ); - $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) ); + $this->assertEquals( '12,345', $this->getLang()->commafy( '12345' ) ); } + /** see bug 23156 & r64981 */ function testDoesNotCommafyFourDigitsNumber() { - $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) ); + $this->assertEquals( '1234', $this->getLang()->commafy( '1234' ) ); } + /** @dataProvider providePluralFourForms */ function testPluralFourForms( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); + $forms = array( 'one', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePluralFourForms() { - return array ( + return array( array( 'one', 1 ), array( 'many', 11 ), array( 'one', 91 ), @@ -51,13 +54,15 @@ class LanguageBe_taraskTest extends LanguageClassesTestCase { array( 'many', 120 ), ); } + /** @dataProvider providePluralTwoForms */ function testPluralTwoForms( $result, $value ) { - $forms = array( 'one', 'several' ); + $forms = array( 'one', 'several' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providePluralTwoForms() { - return array ( + return array( array( 'one', 1 ), array( 'several', 11 ), array( 'several', 91 ), diff --git a/tests/phpunit/languages/LanguageBhoTest.php b/tests/phpunit/languages/LanguageBhoTest.php index 5bbd4fe54c..c364917d20 100644 --- a/tests/phpunit/languages/LanguageBhoTest.php +++ b/tests/phpunit/languages/LanguageBhoTest.php @@ -10,12 +10,12 @@ class LanguageBhoTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageBsTest.php b/tests/phpunit/languages/LanguageBsTest.php index dd00428627..76d00704ca 100644 --- a/tests/phpunit/languages/LanguageBsTest.php +++ b/tests/phpunit/languages/LanguageBsTest.php @@ -10,12 +10,12 @@ class LanguageBsTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); + $forms = array( 'one', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'many', 0 ), array( 'one', 1 ), array( 'few', 2 ), diff --git a/tests/phpunit/languages/LanguageClassesTestCase.php b/tests/phpunit/languages/LanguageClassesTestCase.php index 4f0a37f1c7..6659dad179 100644 --- a/tests/phpunit/languages/LanguageClassesTestCase.php +++ b/tests/phpunit/languages/LanguageClassesTestCase.php @@ -32,7 +32,7 @@ abstract class LanguageClassesTestCase extends MediaWikiTestCase { /** * Regex used to find out the language code out of the class name * used by setUpBeforeClass - */ + */ private static $reExtractLangFromClass = '/Language(.*)Test/'; /** @@ -68,7 +68,7 @@ abstract class LanguageClassesTestCase extends MediaWikiTestCase { $m[1] = 'en'; wfDebug( __METHOD__ . " could not extract a language name " - . "out of " . get_called_class() . " failling back to 'en'\n" + . "out of " . get_called_class() . " failling back to 'en'\n" ); } // TODO: validate $m[1] which should be a valid language code diff --git a/tests/phpunit/languages/LanguageCsTest.php b/tests/phpunit/languages/LanguageCsTest.php index 72c9e79c4d..884a129e54 100644 --- a/tests/phpunit/languages/LanguageCsTest.php +++ b/tests/phpunit/languages/LanguageCsTest.php @@ -10,12 +10,12 @@ class LanguageCsTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'other' ); + $forms = array( 'one', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ), diff --git a/tests/phpunit/languages/LanguageCuTest.php b/tests/phpunit/languages/LanguageCuTest.php index 95f8da7465..e2394b35cb 100644 --- a/tests/phpunit/languages/LanguageCuTest.php +++ b/tests/phpunit/languages/LanguageCuTest.php @@ -10,12 +10,12 @@ class LanguageCuTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); + $forms = array( 'one', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ), diff --git a/tests/phpunit/languages/LanguageCyTest.php b/tests/phpunit/languages/LanguageCyTest.php index de6ba5c018..2a7f4a925f 100644 --- a/tests/phpunit/languages/LanguageCyTest.php +++ b/tests/phpunit/languages/LanguageCyTest.php @@ -10,12 +10,12 @@ class LanguageCyTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'zero', 'one', 'two', 'few', 'many', 'other' ); + $forms = array( 'zero', 'one', 'two', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'zero', 0 ), array( 'one', 1 ), array( 'two', 2 ), diff --git a/tests/phpunit/languages/LanguageDsbTest.php b/tests/phpunit/languages/LanguageDsbTest.php index 8fb6024ce0..285ce64864 100644 --- a/tests/phpunit/languages/LanguageDsbTest.php +++ b/tests/phpunit/languages/LanguageDsbTest.php @@ -10,12 +10,12 @@ class LanguageDsbTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'two', 'few', 'other' ); + $forms = array( 'one', 'two', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'one', 101 ), diff --git a/tests/phpunit/languages/LanguageFrTest.php b/tests/phpunit/languages/LanguageFrTest.php index 05de960646..faf0de58bf 100644 --- a/tests/phpunit/languages/LanguageFrTest.php +++ b/tests/phpunit/languages/LanguageFrTest.php @@ -10,12 +10,12 @@ class LanguageFrTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageGaTest.php b/tests/phpunit/languages/LanguageGaTest.php index 0a54592d77..2dbb088ba3 100644 --- a/tests/phpunit/languages/LanguageGaTest.php +++ b/tests/phpunit/languages/LanguageGaTest.php @@ -10,12 +10,12 @@ class LanguageGaTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'two', 'other' ); + $forms = array( 'one', 'two', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'two', 2 ), diff --git a/tests/phpunit/languages/LanguageGdTest.php b/tests/phpunit/languages/LanguageGdTest.php index 7831cd200d..409820faf6 100644 --- a/tests/phpunit/languages/LanguageGdTest.php +++ b/tests/phpunit/languages/LanguageGdTest.php @@ -11,11 +11,12 @@ class LanguageGdTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { // The CLDR ticket for this plural forms is not same as mw plural forms. See http://unicode.org/cldr/trac/ticket/2883 - $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4', 'Form 5', 'Form 6' ); + $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4', 'Form 5', 'Form 6' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providerPlural() { - return array ( + return array( array( 'Form 6', 0 ), array( 'Form 1', 1 ), array( 'Form 2', 2 ), diff --git a/tests/phpunit/languages/LanguageGvTest.php b/tests/phpunit/languages/LanguageGvTest.php index 0edff595e1..4126e07156 100644 --- a/tests/phpunit/languages/LanguageGvTest.php +++ b/tests/phpunit/languages/LanguageGvTest.php @@ -11,11 +11,12 @@ class LanguageGvTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { // This is not compatible with CLDR plural rules http://unicode.org/repos/cldr-tmp/trunk/diff/supplemental/language_plural_rules.html#gv - $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4' ); + $forms = array( 'Form 1', 'Form 2', 'Form 3', 'Form 4' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providerPlural() { - return array ( + return array( array( 'Form 4', 0 ), array( 'Form 2', 1 ), array( 'Form 3', 2 ), diff --git a/tests/phpunit/languages/LanguageHeTest.php b/tests/phpunit/languages/LanguageHeTest.php index 575b277e93..6de88e596e 100644 --- a/tests/phpunit/languages/LanguageHeTest.php +++ b/tests/phpunit/languages/LanguageHeTest.php @@ -15,7 +15,7 @@ class LanguageHeTest extends LanguageClassesTestCase { } function providerPluralDual() { - return array ( + return array( array( 'other', 0 ), // Zero -> plural array( 'one', 1 ), // Singular array( 'two', 2 ), // Dual @@ -30,7 +30,7 @@ class LanguageHeTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( + return array( array( 'other', 0 ), // Zero -> plural array( 'one', 1 ), // Singular array( 'other', 2 ), // Plural, no dual provided @@ -46,7 +46,7 @@ class LanguageHeTest extends LanguageClassesTestCase { // The comments in the beginning of the line help avoid RTL problems // with text editors. function providerGrammar() { - return array ( + return array( array( /* result */ 'וויקיפדיה', /* word */ 'ויקיפדיה', diff --git a/tests/phpunit/languages/LanguageHiTest.php b/tests/phpunit/languages/LanguageHiTest.php index 5a780a214e..86d6af587f 100644 --- a/tests/phpunit/languages/LanguageHiTest.php +++ b/tests/phpunit/languages/LanguageHiTest.php @@ -10,12 +10,12 @@ class LanguageHiTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageHrTest.php b/tests/phpunit/languages/LanguageHrTest.php index 748aaf4242..9dce4ea73e 100644 --- a/tests/phpunit/languages/LanguageHrTest.php +++ b/tests/phpunit/languages/LanguageHrTest.php @@ -10,12 +10,12 @@ class LanguageHrTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'many', 'other' ); + $forms = array( 'one', 'few', 'many', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'many', 0 ), array( 'one', 1 ), array( 'few', 2 ), diff --git a/tests/phpunit/languages/LanguageHsbTest.php b/tests/phpunit/languages/LanguageHsbTest.php index 2d90ef095a..bec7d8198a 100644 --- a/tests/phpunit/languages/LanguageHsbTest.php +++ b/tests/phpunit/languages/LanguageHsbTest.php @@ -10,12 +10,12 @@ class LanguageHsbTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'two', 'few', 'other' ); + $forms = array( 'one', 'two', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'one', 101 ), diff --git a/tests/phpunit/languages/LanguageHuTest.php b/tests/phpunit/languages/LanguageHuTest.php index e01278b2be..23d8e0ce1f 100644 --- a/tests/phpunit/languages/LanguageHuTest.php +++ b/tests/phpunit/languages/LanguageHuTest.php @@ -15,7 +15,7 @@ class LanguageHuTest extends LanguageClassesTestCase { } function providePlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageHyTest.php b/tests/phpunit/languages/LanguageHyTest.php index 0ff04c3016..7088d37b47 100644 --- a/tests/phpunit/languages/LanguageHyTest.php +++ b/tests/phpunit/languages/LanguageHyTest.php @@ -10,12 +10,12 @@ class LanguageHyTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageKshTest.php b/tests/phpunit/languages/LanguageKshTest.php index e92d264980..9b4a53adf5 100644 --- a/tests/phpunit/languages/LanguageKshTest.php +++ b/tests/phpunit/languages/LanguageKshTest.php @@ -10,12 +10,12 @@ class LanguageKshTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other', 'zero' ); + $forms = array( 'one', 'other', 'zero' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'zero', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageLnTest.php b/tests/phpunit/languages/LanguageLnTest.php index 8853caaa18..669d8b0a6b 100644 --- a/tests/phpunit/languages/LanguageLnTest.php +++ b/tests/phpunit/languages/LanguageLnTest.php @@ -10,12 +10,12 @@ class LanguageLnTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageLtTest.php b/tests/phpunit/languages/LanguageLtTest.php index 485a090d83..9d6428b826 100644 --- a/tests/phpunit/languages/LanguageLtTest.php +++ b/tests/phpunit/languages/LanguageLtTest.php @@ -10,18 +10,18 @@ class LanguageLtTest extends LanguageClassesTestCase { /** @dataProvider provideOneFewOtherCases */ function testOneFewOtherPlural( $result, $value ) { - $forms = array( 'one', 'few', 'other' ); + $forms = array( 'one', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } - + /** @dataProvider provideOneFewCases */ function testOneFewPlural( $result, $value ) { - $forms = array( 'one', 'few' ); + $forms = array( 'one', 'few' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function provideOneFewOtherCases() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ), @@ -35,9 +35,9 @@ class LanguageLtTest extends LanguageClassesTestCase { array( 'one', 40001 ), ); } - + function provideOneFewCases() { - return array ( + return array( array( 'one', 1 ), array( 'few', 15 ), ); diff --git a/tests/phpunit/languages/LanguageLvTest.php b/tests/phpunit/languages/LanguageLvTest.php index bf4f793525..efb6de6e86 100644 --- a/tests/phpunit/languages/LanguageLvTest.php +++ b/tests/phpunit/languages/LanguageLvTest.php @@ -10,12 +10,12 @@ class LanguageLvTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), #this must be zero form as per CLDR array( 'one', 1 ), array( 'other', 11 ), diff --git a/tests/phpunit/languages/LanguageMgTest.php b/tests/phpunit/languages/LanguageMgTest.php index d6d3de9942..c1e516bca4 100644 --- a/tests/phpunit/languages/LanguageMgTest.php +++ b/tests/phpunit/languages/LanguageMgTest.php @@ -10,12 +10,12 @@ class LanguageMgTest extends LanguageClassesTestCase { /** @dataProvider providePlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePlural() { - return array ( + return array( array( 'one', 0 ), array( 'one', 1 ), array( 'other', 2 ), diff --git a/tests/phpunit/languages/LanguageMkTest.php b/tests/phpunit/languages/LanguageMkTest.php index 8cd84b8317..5c241ba701 100644 --- a/tests/phpunit/languages/LanguageMkTest.php +++ b/tests/phpunit/languages/LanguageMkTest.php @@ -10,13 +10,13 @@ class LanguageMkTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'other', 11 ), diff --git a/tests/phpunit/languages/LanguageMlTest.php b/tests/phpunit/languages/LanguageMlTest.php index 10ff664882..396114d972 100644 --- a/tests/phpunit/languages/LanguageMlTest.php +++ b/tests/phpunit/languages/LanguageMlTest.php @@ -9,17 +9,17 @@ class LanguageMlTest extends LanguageClassesTestCase { /** see bug 29495 */ - /** @dataProvider providerFormatNum*/ + /** @dataProvider providerFormatNum */ function testFormatNum( $result, $value ) { $this->assertEquals( $result, $this->getLang()->formatNum( $value ) ); } function providerFormatNum() { return array( - array( '12,34,567', '1234567' ), + array( '12,34,567', '1234567' ), array( '12,345', '12345' ), array( '1', '1' ), - array( '123', '123' ) , + array( '123', '123' ), array( '1,234', '1234' ), array( '12,345.56', '12345.56' ), array( '12,34,56,79,81,23,45,678', '12345679812345678' ), @@ -27,7 +27,7 @@ class LanguageMlTest extends LanguageClassesTestCase { array( '-12,00,000', '-1200000' ), array( '-98', '-98' ), array( '-98', -98 ), - array( '-1,23,45,678', -12345678 ), + array( '-1,23,45,678', -12345678 ), array( '', '' ), array( '', null ), ); diff --git a/tests/phpunit/languages/LanguageMoTest.php b/tests/phpunit/languages/LanguageMoTest.php index 491d8ac66f..f7da1cd615 100644 --- a/tests/phpunit/languages/LanguageMoTest.php +++ b/tests/phpunit/languages/LanguageMoTest.php @@ -10,25 +10,25 @@ class LanguageMoTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'other' ); + $forms = array( 'one', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( - array( 'few', 0 ), - array( 'one', 1 ), - array( 'few', 2 ), - array( 'few', 19 ), + return array( + array( 'few', 0 ), + array( 'one', 1 ), + array( 'few', 2 ), + array( 'few', 19 ), array( 'other', 20 ), array( 'other', 99 ), array( 'other', 100 ), - array( 'few', 101 ), - array( 'few', 119 ), + array( 'few', 101 ), + array( 'few', 119 ), array( 'other', 120 ), array( 'other', 200 ), - array( 'few', 201 ), - array( 'few', 219 ), + array( 'few', 201 ), + array( 'few', 219 ), array( 'other', 220 ), ); } diff --git a/tests/phpunit/languages/LanguageMtTest.php b/tests/phpunit/languages/LanguageMtTest.php index 70cd93a640..f2b881e7d1 100644 --- a/tests/phpunit/languages/LanguageMtTest.php +++ b/tests/phpunit/languages/LanguageMtTest.php @@ -15,21 +15,21 @@ class LanguageMtTest extends LanguageClassesTestCase { } function providerPluralAllForms() { - return array ( - array( 'few', 0 ), - array( 'one', 1 ), - array( 'few', 2 ), - array( 'few', 10 ), - array( 'many', 11 ), - array( 'many', 19 ), + return array( + array( 'few', 0 ), + array( 'one', 1 ), + array( 'few', 2 ), + array( 'few', 10 ), + array( 'many', 11 ), + array( 'many', 19 ), array( 'other', 20 ), array( 'other', 99 ), array( 'other', 100 ), array( 'other', 101 ), - array( 'few', 102 ), - array( 'few', 110 ), - array( 'many', 111 ), - array( 'many', 119 ), + array( 'few', 102 ), + array( 'few', 110 ), + array( 'many', 111 ), + array( 'many', 119 ), array( 'other', 120 ), array( 'other', 201 ), ); @@ -42,23 +42,23 @@ class LanguageMtTest extends LanguageClassesTestCase { } function providerPluralTwoForms() { - return array ( - array( 'many', 0 ), - array( 'one', 1 ), - array( 'many', 2 ), - array( 'many', 10 ), - array( 'many', 11 ), - array( 'many', 19 ), - array( 'many', 20 ), - array( 'many', 99 ), - array( 'many', 100 ), - array( 'many', 101 ), - array( 'many', 102 ), - array( 'many', 110 ), - array( 'many', 111 ), - array( 'many', 119 ), - array( 'many', 120 ), - array( 'many', 201 ), + return array( + array( 'many', 0 ), + array( 'one', 1 ), + array( 'many', 2 ), + array( 'many', 10 ), + array( 'many', 11 ), + array( 'many', 19 ), + array( 'many', 20 ), + array( 'many', 99 ), + array( 'many', 100 ), + array( 'many', 101 ), + array( 'many', 102 ), + array( 'many', 110 ), + array( 'many', 111 ), + array( 'many', 119 ), + array( 'many', 120 ), + array( 'many', 201 ), ); } } diff --git a/tests/phpunit/languages/LanguageNsoTest.php b/tests/phpunit/languages/LanguageNsoTest.php index 97146d34b0..9d80d13867 100644 --- a/tests/phpunit/languages/LanguageNsoTest.php +++ b/tests/phpunit/languages/LanguageNsoTest.php @@ -15,9 +15,9 @@ class LanguageNsoTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'one', 0 ), - array( 'one', 1 ), + return array( + array( 'one', 0 ), + array( 'one', 1 ), array( 'many', 2 ), ); } diff --git a/tests/phpunit/languages/LanguagePlTest.php b/tests/phpunit/languages/LanguagePlTest.php index 00b7e9e8aa..1e36097bc4 100644 --- a/tests/phpunit/languages/LanguagePlTest.php +++ b/tests/phpunit/languages/LanguagePlTest.php @@ -15,23 +15,23 @@ class LanguagePlTest extends LanguageClassesTestCase { } function providerPluralFourForms() { - return array ( - array( 'many', 0 ), - array( 'one', 1 ), - array( 'few', 2 ), - array( 'few', 3 ), - array( 'few', 4 ), - array( 'many', 5 ), - array( 'many', 9 ), - array( 'many', 10 ), - array( 'many', 11 ), - array( 'many', 21 ), - array( 'few', 22 ), - array( 'few', 23 ), - array( 'few', 24 ), - array( 'many', 25 ), - array( 'many', 200 ), - array( 'many', 201 ), + return array( + array( 'many', 0 ), + array( 'one', 1 ), + array( 'few', 2 ), + array( 'few', 3 ), + array( 'few', 4 ), + array( 'many', 5 ), + array( 'many', 9 ), + array( 'many', 10 ), + array( 'many', 11 ), + array( 'many', 21 ), + array( 'few', 22 ), + array( 'few', 23 ), + array( 'few', 24 ), + array( 'many', 25 ), + array( 'many', 200 ), + array( 'many', 201 ), ); } @@ -42,23 +42,23 @@ class LanguagePlTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'many', 0 ), - array( 'one', 1 ), - array( 'many', 2 ), - array( 'many', 3 ), - array( 'many', 4 ), - array( 'many', 5 ), - array( 'many', 9 ), - array( 'many', 10 ), - array( 'many', 11 ), - array( 'many', 21 ), - array( 'many', 22 ), - array( 'many', 23 ), - array( 'many', 24 ), - array( 'many', 25 ), - array( 'many', 200 ), - array( 'many', 201 ), + return array( + array( 'many', 0 ), + array( 'one', 1 ), + array( 'many', 2 ), + array( 'many', 3 ), + array( 'many', 4 ), + array( 'many', 5 ), + array( 'many', 9 ), + array( 'many', 10 ), + array( 'many', 11 ), + array( 'many', 21 ), + array( 'many', 22 ), + array( 'many', 23 ), + array( 'many', 24 ), + array( 'many', 25 ), + array( 'many', 200 ), + array( 'many', 201 ), ); } } diff --git a/tests/phpunit/languages/LanguageRoTest.php b/tests/phpunit/languages/LanguageRoTest.php index 61726bcbe1..916ea45da9 100644 --- a/tests/phpunit/languages/LanguageRoTest.php +++ b/tests/phpunit/languages/LanguageRoTest.php @@ -10,25 +10,25 @@ class LanguageRoTest extends LanguageClassesTestCase { /** @dataProvider providerPlural */ function testPlural( $result, $value ) { - $forms = array( 'one', 'few', 'other' ); + $forms = array( 'one', 'few', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providerPlural() { - return array ( - array( 'few', 0 ), - array( 'one', 1 ), - array( 'few', 2 ), - array( 'few', 19 ), + return array( + array( 'few', 0 ), + array( 'one', 1 ), + array( 'few', 2 ), + array( 'few', 19 ), array( 'other', 20 ), array( 'other', 99 ), array( 'other', 100 ), - array( 'few', 101 ), - array( 'few', 119 ), + array( 'few', 101 ), + array( 'few', 119 ), array( 'other', 120 ), array( 'other', 200 ), - array( 'few', 201 ), - array( 'few', 219 ), + array( 'few', 201 ), + array( 'few', 219 ), array( 'other', 220 ), ); } diff --git a/tests/phpunit/languages/LanguageSeTest.php b/tests/phpunit/languages/LanguageSeTest.php index cf76353f3c..c7dd8020e1 100644 --- a/tests/phpunit/languages/LanguageSeTest.php +++ b/tests/phpunit/languages/LanguageSeTest.php @@ -15,10 +15,10 @@ class LanguageSeTest extends LanguageClassesTestCase { } function providerPluralThreeForms() { - return array ( + return array( array( 'other', 0 ), - array( 'one', 1 ), - array( 'two', 2 ), + array( 'one', 1 ), + array( 'two', 2 ), array( 'other', 3 ), ); } @@ -30,9 +30,9 @@ class LanguageSeTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( + return array( array( 'other', 0 ), - array( 'one', 1 ), + array( 'one', 1 ), array( 'other', 2 ), array( 'other', 3 ), ); diff --git a/tests/phpunit/languages/LanguageSgsTest.php b/tests/phpunit/languages/LanguageSgsTest.php index e2a56caa38..8a6e979f14 100644 --- a/tests/phpunit/languages/LanguageSgsTest.php +++ b/tests/phpunit/languages/LanguageSgsTest.php @@ -15,33 +15,33 @@ class LanguageSgsTest extends LanguageClassesTestCase { } function providePluralAllForms() { - return array ( - array( 'many', 0 ), - array( 'one', 1 ), - array( 'few', 2 ), + return array( + array( 'many', 0 ), + array( 'one', 1 ), + array( 'few', 2 ), array( 'other', 3 ), - array( 'many', 10 ), - array( 'many', 11 ), - array( 'many', 12 ), - array( 'many', 19 ), + array( 'many', 10 ), + array( 'many', 11 ), + array( 'many', 12 ), + array( 'many', 19 ), array( 'other', 20 ), - array( 'many', 100 ), - array( 'one', 101 ), - array( 'many', 111 ), - array( 'many', 112 ), + array( 'many', 100 ), + array( 'one', 101 ), + array( 'many', 111 ), + array( 'many', 112 ), ); } /** @dataProvider providePluralTwoForms */ function testPluralTwoForms( $result, $value ) { - $forms = array( 'one', 'other' ); + $forms = array( 'one', 'other' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } function providePluralTwoForms() { - return array ( + return array( array( 'other', 0 ), - array( 'one', 1 ), + array( 'one', 1 ), array( 'other', 2 ), array( 'other', 3 ), array( 'other', 10 ), @@ -50,7 +50,7 @@ class LanguageSgsTest extends LanguageClassesTestCase { array( 'other', 19 ), array( 'other', 20 ), array( 'other', 100 ), - array( 'one', 101 ), + array( 'one', 101 ), array( 'other', 111 ), array( 'other', 112 ), ); diff --git a/tests/phpunit/languages/LanguageShTest.php b/tests/phpunit/languages/LanguageShTest.php index 25618c4ffd..282fd2f2b6 100644 --- a/tests/phpunit/languages/LanguageShTest.php +++ b/tests/phpunit/languages/LanguageShTest.php @@ -15,9 +15,9 @@ class LanguageShTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( + return array( array( 'many', 0 ), - array( 'one', 1 ), + array( 'one', 1 ), array( 'many', 2 ), ); } diff --git a/tests/phpunit/languages/LanguageSkTest.php b/tests/phpunit/languages/LanguageSkTest.php index b50f7dfe7a..89cbbf01a9 100644 --- a/tests/phpunit/languages/LanguageSkTest.php +++ b/tests/phpunit/languages/LanguageSkTest.php @@ -16,7 +16,7 @@ class LanguageSkTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( + return array( array( 'other', 0 ), array( 'one', 1 ), array( 'few', 2 ), diff --git a/tests/phpunit/languages/LanguageSlTest.php b/tests/phpunit/languages/LanguageSlTest.php index bfb7c7ee28..075e6af364 100644 --- a/tests/phpunit/languages/LanguageSlTest.php +++ b/tests/phpunit/languages/LanguageSlTest.php @@ -16,19 +16,19 @@ class LanguageSlTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'zero', 0 ), - array( 'one', 1 ), - array( 'two', 2 ), - array( 'few', 3 ), - array( 'few', 4 ), + return array( + array( 'zero', 0 ), + array( 'one', 1 ), + array( 'two', 2 ), + array( 'few', 3 ), + array( 'few', 4 ), array( 'other', 5 ), array( 'other', 99 ), array( 'other', 100 ), - array( 'one', 101 ), - array( 'two', 102 ), - array( 'few', 103 ), - array( 'one', 201 ), + array( 'one', 101 ), + array( 'two', 102 ), + array( 'few', 103 ), + array( 'one', 201 ), ); } } diff --git a/tests/phpunit/languages/LanguageSmaTest.php b/tests/phpunit/languages/LanguageSmaTest.php index 85fa9fbf55..6d655219f0 100644 --- a/tests/phpunit/languages/LanguageSmaTest.php +++ b/tests/phpunit/languages/LanguageSmaTest.php @@ -15,10 +15,10 @@ class LanguageSmaTest extends LanguageClassesTestCase { } function providerPluralThreeForms() { - return array ( + return array( array( 'other', 0 ), - array( 'one', 1 ), - array( 'two', 2 ), + array( 'one', 1 ), + array( 'two', 2 ), array( 'other', 3 ), ); } @@ -30,9 +30,9 @@ class LanguageSmaTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( + return array( array( 'other', 0 ), - array( 'one', 1 ), + array( 'one', 1 ), array( 'other', 2 ), array( 'other', 3 ), ); diff --git a/tests/phpunit/languages/LanguageSrTest.php b/tests/phpunit/languages/LanguageSrTest.php index c88115d212..5611030bb4 100644 --- a/tests/phpunit/languages/LanguageSrTest.php +++ b/tests/phpunit/languages/LanguageSrTest.php @@ -19,7 +19,7 @@ class LanguageSrTest extends LanguageClassesTestCase { ##### TESTS ####################################################### - function testEasyConversions( ) { + function testEasyConversions() { $this->assertCyrillic( 'шђчћжШЂЧЋЖ', 'Cyrillic guessing characters' @@ -120,7 +120,7 @@ class LanguageSrTest extends LanguageClassesTestCase { } function providePluralFourForms() { - return array ( + return array( array( 'one', 1 ), array( 'many', 11 ), array( 'one', 91 ), @@ -134,13 +134,15 @@ class LanguageSrTest extends LanguageClassesTestCase { array( 'many', 120 ), ); } + /** @dataProvider providePluralTwoForms */ function testPluralTwoForms( $result, $value ) { $forms = array( 'one', 'several' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providePluralTwoForms() { - return array ( + return array( array( 'one', 1 ), array( 'several', 11 ), array( 'several', 91 ), @@ -162,6 +164,7 @@ class LanguageSrTest extends LanguageClassesTestCase { $msg ); } + /** * Wrapper to verify a text is different once converted to a variant. * @param $text string Text to convert @@ -185,6 +188,7 @@ class LanguageSrTest extends LanguageClassesTestCase { $this->assertUnConverted( $text, 'sr-ec', $msg ); $this->assertConverted( $text, 'sr-el', $msg ); } + /** * Verifiy the given Latin text is not converted when using * using the Latin variant and converted to Cyrillic when using @@ -201,12 +205,14 @@ class LanguageSrTest extends LanguageClassesTestCase { return $this->getLang() ->mConverter ->convertTo( - $text, $variant - ); + $text, $variant + ); } + function convertToCyrillic( $text ) { return $this->convertTo( $text, 'sr-ec' ); } + function convertToLatin( $text ) { return $this->convertTo( $text, 'sr-el' ); } diff --git a/tests/phpunit/languages/LanguageTest.php b/tests/phpunit/languages/LanguageTest.php index 9507714df5..8b0b14b1f1 100644 --- a/tests/phpunit/languages/LanguageTest.php +++ b/tests/phpunit/languages/LanguageTest.php @@ -439,10 +439,10 @@ class LanguageTest extends LanguageClassesTestCase { function provideLanguageCodes() { return array( - array( 'fr' , 'Two letters, minor case' ), - array( 'EN' , 'Two letters, upper case' ), - array( 'tyv' , 'Three letters' ), - array( 'tokipona' , 'long language code' ), + array( 'fr', 'Two letters, minor case' ), + array( 'EN', 'Two letters, upper case' ), + array( 'tyv', 'Three letters' ), + array( 'tokipona', 'long language code' ), array( 'be-tarask', 'With dash' ), array( 'Zh-classical', 'Begin with upper case, dash' ), array( 'Be-x-old', 'With extension (two dashes)' ), @@ -455,7 +455,7 @@ class LanguageTest extends LanguageClassesTestCase { */ function testKnownLanguageTag( $code, $message = '' ) { $this->assertTrue( - (bool) Language::isKnownLanguageTag( $code ), + (bool)Language::isKnownLanguageTag( $code ), "validating code $code - $message" ); } @@ -477,7 +477,7 @@ class LanguageTest extends LanguageClassesTestCase { } $this->assertTrue( - (bool) Language::isKnownLanguageTag( 'pal' ), + (bool)Language::isKnownLanguageTag( 'pal' ), 'validating code "pal" an ancient language, which probably will not appear in Names.php, but appears in CLDR in English' ); } @@ -488,7 +488,7 @@ class LanguageTest extends LanguageClassesTestCase { */ function testUnknownLanguageTag( $code, $message = '' ) { $this->assertFalse( - (bool) Language::isKnownLanguageTag( $code ), + (bool)Language::isKnownLanguageTag( $code ), "checking that code $code is invalid - $message" ); } @@ -509,6 +509,7 @@ class LanguageTest extends LanguageClassesTestCase { "sprintfDate('$format', '$ts'): $msg" ); } + /** * bug 33454. sprintfDate should always use UTC. * @dataProvider provideSprintfDateSamples @@ -958,7 +959,6 @@ class LanguageTest extends LanguageClassesTestCase { } - /** * @dataProvider provideFormatDuration */ @@ -1101,13 +1101,13 @@ class LanguageTest extends LanguageClassesTestCase { function testCheckTitleEncoding( $s ) { $this->assertEquals( $s, - $this->getLang()->checkTitleEncoding($s), + $this->getLang()->checkTitleEncoding( $s ), "checkTitleEncoding('$s')" ); } function provideCheckTitleEncodingData() { - return array ( + return array( array( "" ), array( "United States of America" ), // 7bit ASCII array( rawurldecode( "S%C3%A9rie%20t%C3%A9l%C3%A9vis%C3%A9e" ) ), @@ -1212,7 +1212,7 @@ class LanguageTest extends LanguageClassesTestCase { array( 7000, 'MMMMMMM' ), array( 8000, 'MMMMMMMM' ), array( 9000, 'MMMMMMMMM' ), - array( 9999, 'MMMMMMMMMCMXCIX'), + array( 9999, 'MMMMMMMMMCMXCIX' ), array( 10000, 'MMMMMMMMMM' ), ); } @@ -1311,7 +1311,7 @@ class LanguageTest extends LanguageClassesTestCase { $s = $lang->getMessageFromDB( 'word-separator' ); $c = $lang->getMessageFromDB( 'comma-separator' ); - $this->assertEquals( '', $lang->listToText( array( ) ) ); + $this->assertEquals( '', $lang->listToText( array() ) ); $this->assertEquals( 'a', $lang->listToText( array( 'a' ) ) ); $this->assertEquals( "a{$and}{$s}b", $lang->listToText( array( 'a', 'b' ) ) ); $this->assertEquals( "a{$c}b{$and}{$s}c", $lang->listToText( array( 'a', 'b', 'c' ) ) ); diff --git a/tests/phpunit/languages/LanguageTiTest.php b/tests/phpunit/languages/LanguageTiTest.php index 259e0076cd..8af0eee203 100644 --- a/tests/phpunit/languages/LanguageTiTest.php +++ b/tests/phpunit/languages/LanguageTiTest.php @@ -15,9 +15,9 @@ class LanguageTiTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'one', 0 ), - array( 'one', 1 ), + return array( + array( 'one', 0 ), + array( 'one', 1 ), array( 'many', 2 ), ); } diff --git a/tests/phpunit/languages/LanguageTlTest.php b/tests/phpunit/languages/LanguageTlTest.php index bf3dafcbd7..abd8581a25 100644 --- a/tests/phpunit/languages/LanguageTlTest.php +++ b/tests/phpunit/languages/LanguageTlTest.php @@ -15,9 +15,9 @@ class LanguageTlTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'one', 0 ), - array( 'one', 1 ), + return array( + array( 'one', 0 ), + array( 'one', 1 ), array( 'many', 2 ), ); } diff --git a/tests/phpunit/languages/LanguageTrTest.php b/tests/phpunit/languages/LanguageTrTest.php index e4859df76b..e93d49d967 100644 --- a/tests/phpunit/languages/LanguageTrTest.php +++ b/tests/phpunit/languages/LanguageTrTest.php @@ -18,9 +18,9 @@ class LanguageTrTest extends LanguageClassesTestCase { * @dataProvider provideDottedAndDotlessI */ function testDottedAndDotlessI( $func, $input, $inputCase, $expected ) { - if( $func == 'ucfirst' ) { + if ( $func == 'ucfirst' ) { $res = $this->getLang()->ucfirst( $input ); - } elseif( $func == 'lcfirst' ) { + } elseif ( $func == 'lcfirst' ) { $res = $this->getLang()->lcfirst( $input ); } else { throw new MWException( __METHOD__ . " given an invalid function name '$func'" ); diff --git a/tests/phpunit/languages/LanguageUkTest.php b/tests/phpunit/languages/LanguageUkTest.php index f29b90ba17..9bbfaf6615 100644 --- a/tests/phpunit/languages/LanguageUkTest.php +++ b/tests/phpunit/languages/LanguageUkTest.php @@ -16,7 +16,7 @@ class LanguageUkTest extends LanguageClassesTestCase { } function providePluralFourForms() { - return array ( + return array( array( 'one', 1 ), array( 'many', 11 ), array( 'one', 91 ), @@ -30,13 +30,15 @@ class LanguageUkTest extends LanguageClassesTestCase { array( 'many', 120 ), ); } + /** @dataProvider providePluralTwoForms */ function testPluralTwoForms( $result, $value ) { $forms = array( 'one', 'several' ); $this->assertEquals( $result, $this->getLang()->convertPlural( $value, $forms ) ); } + function providePluralTwoForms() { - return array ( + return array( array( 'one', 1 ), array( 'several', 11 ), array( 'several', 91 ), diff --git a/tests/phpunit/languages/LanguageUzTest.php b/tests/phpunit/languages/LanguageUzTest.php index 99607d12b9..495c0be623 100644 --- a/tests/phpunit/languages/LanguageUzTest.php +++ b/tests/phpunit/languages/LanguageUzTest.php @@ -64,6 +64,7 @@ class LanguageUzTest extends LanguageClassesTestCase { $msg ); } + /** * Wrapper to verify a text is different once converted to a variant. * @param $text string Text to convert @@ -87,6 +88,7 @@ class LanguageUzTest extends LanguageClassesTestCase { $this->assertUnConverted( $text, 'uz-cyrl', $msg ); $this->assertConverted( $text, 'uz-latn', $msg ); } + /** * Verifiy the given Latin text is not converted when using * using the Latin variant and converted to Cyrillic when using @@ -102,9 +104,11 @@ class LanguageUzTest extends LanguageClassesTestCase { function convertTo( $text, $variant ) { return $this->getLang()->mConverter->convertTo( $text, $variant ); } + function convertToCyrillic( $text ) { return $this->convertTo( $text, 'uz-cyrl' ); } + function convertToLatin( $text ) { return $this->convertTo( $text, 'uz-latn' ); } diff --git a/tests/phpunit/languages/LanguageWaTest.php b/tests/phpunit/languages/LanguageWaTest.php index 4a1c0e728f..28329fa352 100644 --- a/tests/phpunit/languages/LanguageWaTest.php +++ b/tests/phpunit/languages/LanguageWaTest.php @@ -15,9 +15,9 @@ class LanguageWaTest extends LanguageClassesTestCase { } function providerPlural() { - return array ( - array( 'one', 0 ), - array( 'one', 1 ), + return array( + array( 'one', 0 ), + array( 'one', 1 ), array( 'many', 2 ), ); }