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
38 lines
707 B
PHP
38 lines
707 B
PHP
<?php
|
|
|
|
/**
|
|
* @covers LanguageGan
|
|
* @covers GanConverter
|
|
*/
|
|
class LanguageGanTest extends LanguageClassesTestCase {
|
|
/**
|
|
* @dataProvider provideAutoConvertToAllVariants
|
|
* @covers Language::autoConvertToAllVariants
|
|
*/
|
|
public function testAutoConvertToAllVariants( $result, $value ) {
|
|
$this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
|
|
}
|
|
|
|
public static function provideAutoConvertToAllVariants() {
|
|
return [
|
|
// zh2Hans
|
|
[
|
|
[
|
|
'gan' => '㑯',
|
|
'gan-hans' => '㑔',
|
|
'gan-hant' => '㑯',
|
|
],
|
|
'㑯'
|
|
],
|
|
// zh2Hant
|
|
[
|
|
[
|
|
'gan' => '㐷',
|
|
'gan-hans' => '㐷',
|
|
'gan-hant' => '傌',
|
|
],
|
|
'㐷'
|
|
],
|
|
];
|
|
}
|
|
}
|