12345678910111213141516171819202122232425262728293031323334353637 |
- <?php
- /**
- * @covers LanguageShi
- * @covers ShiConverter
- */
- class LanguageShiTest extends LanguageClassesTestCase {
- /**
- * @dataProvider provideAutoConvertToAllVariants
- * @covers Language::autoConvertToAllVariants
- */
- public function testAutoConvertToAllVariants( $result, $value ) {
- $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
- }
- public static function provideAutoConvertToAllVariants() {
- return [
- [
- [
- 'shi' => 'AƔ',
- 'shi-tfng' => 'ⴰⵖ',
- 'shi-latn' => 'AƔ',
- ],
- 'AƔ'
- ],
- [
- [
- 'shi' => 'ⴰⵖ',
- 'shi-tfng' => 'ⴰⵖ',
- 'shi-latn' => 'aɣ',
- ],
- 'ⴰⵖ'
- ],
- ];
- }
- }
|