LanguageShiTest.php 701 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * @covers LanguageShi
  4. * @covers ShiConverter
  5. */
  6. class LanguageShiTest extends LanguageClassesTestCase {
  7. /**
  8. * @dataProvider provideAutoConvertToAllVariants
  9. * @covers Language::autoConvertToAllVariants
  10. */
  11. public function testAutoConvertToAllVariants( $result, $value ) {
  12. $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
  13. }
  14. public static function provideAutoConvertToAllVariants() {
  15. return [
  16. [
  17. [
  18. 'shi' => 'AƔ',
  19. 'shi-tfng' => 'ⴰⵖ',
  20. 'shi-latn' => 'AƔ',
  21. ],
  22. 'AƔ'
  23. ],
  24. [
  25. [
  26. 'shi' => 'ⴰⵖ',
  27. 'shi-tfng' => 'ⴰⵖ',
  28. 'shi-latn' => 'aɣ',
  29. ],
  30. 'ⴰⵖ'
  31. ],
  32. ];
  33. }
  34. }