X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FCollationTest.php;h=74b129676626bf688a64824da353467d8ae9327d;hb=a2527f7dc5504b2d1305dd0544f100135ebe70ca;hp=c6a7169cab1fe895b4821c3b277c5f585a8c662f;hpb=1068762721c3fb9edf751fa0eb9bd2b134161f91;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/CollationTest.php b/tests/phpunit/includes/CollationTest.php index c6a7169cab..74b1296766 100644 --- a/tests/phpunit/includes/CollationTest.php +++ b/tests/phpunit/includes/CollationTest.php @@ -10,9 +10,7 @@ class CollationTest extends MediaWikiLangTestCase { protected function setUp() { parent::setUp(); - if ( !extension_loaded( 'intl' ) ) { - $this->markTestSkipped( 'These tests require intl extension' ); - } + $this->checkPHPExtension( 'intl' ); } /** @@ -22,9 +20,9 @@ class CollationTest extends MediaWikiLangTestCase { * prefix of "XY". Our collation * code makes this assumption. * - * @param $lang String Language code for collator - * @param $base String Base string - * @param $extended String String containing base as a prefix. + * @param string $lang Language code for collator + * @param string $base Base string + * @param string $extended String containing base as a prefix. * * @dataProvider prefixDataProvider */ @@ -83,9 +81,9 @@ class CollationTest extends MediaWikiLangTestCase { /** * Test correct first letter is fetched. * - * @param $collation String Collation name (aka uca-en) - * @param $string String String to get first letter of - * @param $firstLetter String Expected first letter. + * @param string $collation Collation name (aka uca-en) + * @param string $string String to get first letter of + * @param string $firstLetter Expected first letter. * * @dataProvider firstLetterProvider */