LanguageTgTest.php 620 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * @covers LanguageTg
  4. * @covers TgConverter
  5. */
  6. class LanguageTgTest 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. 'tg' => 'г',
  19. 'tg-latn' => 'g',
  20. ],
  21. 'г'
  22. ],
  23. [
  24. [
  25. 'tg' => 'g',
  26. 'tg-latn' => 'g',
  27. ],
  28. 'g'
  29. ],
  30. ];
  31. }
  32. }