X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2FCollationTest.php;h=c6a7169cab1fe895b4821c3b277c5f585a8c662f;hb=c739d8c4fccc9686ee2b196bbeeeec7542dbaf03;hp=f1004fbf66730448453bf25cba1c9aa6e5bbcab5;hpb=939b104dbb55c6045d133322c6bb35908ed6218c;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/CollationTest.php b/tests/phpunit/includes/CollationTest.php index f1004fbf66..c6a7169cab 100644 --- a/tests/phpunit/includes/CollationTest.php +++ b/tests/phpunit/includes/CollationTest.php @@ -1,4 +1,12 @@ setStrength( Collator::PRIMARY ); $baseBin = $cp->getSortKey( $base ); @@ -30,7 +38,7 @@ class CollationTest extends MediaWikiLangTestCase { $this->assertStringStartsWith( $baseBin, $extendedBin, "$base is not a prefix of $extended" ); } - function prefixDataProvider() { + public static function prefixDataProvider() { return array( array( 'en', 'A', 'AA' ), array( 'en', 'A', 'AAA' ), @@ -53,7 +61,7 @@ class CollationTest extends MediaWikiLangTestCase { * * @dataProvider notPrefixDataProvider */ - function testNotIsPrefix( $lang, $base, $extended ) { + public function testNotIsPrefix( $lang, $base, $extended ) { $cp = Collator::create( $lang ); $cp->setStrength( Collator::PRIMARY ); $baseBin = $cp->getSortKey( $base ); @@ -63,7 +71,7 @@ class CollationTest extends MediaWikiLangTestCase { $this->assertStringStartsNotWith( $baseBin, $extendedBin, "$base is a prefix of $extended" ); } - function notPrefixDataProvider() { + public static function notPrefixDataProvider() { return array( array( 'en', 'A', 'B' ), array( 'en', 'AC', 'ABC' ), @@ -81,7 +89,7 @@ class CollationTest extends MediaWikiLangTestCase { * * @dataProvider firstLetterProvider */ - function testGetFirstLetter( $collation, $string, $firstLetter ) { + public function testGetFirstLetter( $collation, $string, $firstLetter ) { $col = Collation::factory( $collation ); $this->assertEquals( $firstLetter, $col->getFirstLetter( $string ) ); }