I removed comments that merely repeated the location of the class being tested. There are other tests in this directory that don't have a corresponding class and need further investigation. Change-Id: Ic16f0887b5030ac53fab4382cfaedfb5426cdb08
44 lines
1.3 KiB
PHP
44 lines
1.3 KiB
PHP
<?php
|
||
|
||
/**
|
||
* @covers LanguageKu
|
||
* @covers KuConverter
|
||
*/
|
||
class LanguageKuTest extends LanguageClassesTestCase {
|
||
/**
|
||
* @dataProvider provideAutoConvertToAllVariants
|
||
* @covers Language::autoConvertToAllVariants
|
||
*/
|
||
public function testAutoConvertToAllVariants( $result, $value ) {
|
||
$this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
|
||
}
|
||
|
||
public static function provideAutoConvertToAllVariants() {
|
||
return [
|
||
[
|
||
[
|
||
'ku' => '١',
|
||
'ku-arab' => '١',
|
||
'ku-latn' => '1',
|
||
],
|
||
'١'
|
||
],
|
||
[
|
||
[
|
||
'ku' => 'Wîkîpediya ensîklopediyeke azad bi rengê wîkî ye.',
|
||
'ku-arab' => 'ویکیپەدیائە نسیکلۆپەدیەکەئا زاد ب رەنگێ ویکی یە.',
|
||
'ku-latn' => 'Wîkîpediya ensîklopediyeke azad bi rengê wîkî ye.',
|
||
],
|
||
'Wîkîpediya ensîklopediyeke azad bi rengê wîkî ye.'
|
||
],
|
||
[
|
||
[
|
||
'ku' => 'ویکیپەدیا ەنسیکلۆپەدیەکەئا زاد ب رەنگێ ویکی یە.',
|
||
'ku-arab' => 'ویکیپەدیا ەنسیکلۆپەدیەکەئا زاد ب رەنگێ ویکی یە.',
|
||
'ku-latn' => 'wîkîpedîa ensîklopedîekea zad b rengê wîkî îe.',
|
||
],
|
||
'ویکیپەدیا ەنسیکلۆپەدیەکەئا زاد ب رەنگێ ویکی یە.'
|
||
],
|
||
];
|
||
}
|
||
}
|