6 class CollationFaTest
extends MediaWikiTestCase
{
9 * The ordering is a weird hack designed to work only with a very
10 * specific version of libicu, and as such can't really be unit tested
11 * against a random version of libicu
14 public function setUp() {
16 $this->checkPHPExtension( 'intl' );
20 * @dataProvider provideGetFirstLetter
22 public function testGetFirstLetter( $letter, $str ) {
23 $coll = new CollationFa
;
24 $this->assertEquals( $letter, $coll->getFirstLetter( $str ), $str );
27 public function provideGetFirstLetter() {
49 [ "\xd8\xa7", "\xd8\xa7Foo" ],
50 [ "\xd9\x88", "\xd9\x88Foo" ],
51 [ "\xd9\xb2", "\xd9\xb2Foo" ],
52 [ "\xd9\xb3", "\xd9\xb3Foo" ],