wiki.techinc.nl/tests/phpunit/languages/classes/LanguageKuTest.php
Kunal Mehta fc23633035 Add @covers tags to languages tests
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
2017-12-28 08:52:56 +00:00

44 lines
1.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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.',
],
'ویکیپەدیا ەنسیکلۆپەدیەکەئا زاد ب رەنگێ ویکی یە.'
],
];
}
}