1234567891011121314151617181920212223242526272829303132333435 |
- <?php
- /**
- * @covers LanguageTg
- * @covers TgConverter
- */
- class LanguageTgTest extends LanguageClassesTestCase {
- /**
- * @dataProvider provideAutoConvertToAllVariants
- * @covers Language::autoConvertToAllVariants
- */
- public function testAutoConvertToAllVariants( $result, $value ) {
- $this->assertEquals( $result, $this->getLang()->autoConvertToAllVariants( $value ) );
- }
- public static function provideAutoConvertToAllVariants() {
- return [
- [
- [
- 'tg' => 'г',
- 'tg-latn' => 'g',
- ],
- 'г'
- ],
- [
- [
- 'tg' => 'g',
- 'tg-latn' => 'g',
- ],
- 'g'
- ],
- ];
- }
- }
|