languageCodesTest.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016 Lukas Reschke <lukas@statuscode.ch>
  4. *
  5. * @license GNU AGPL version 3 or any later version
  6. *
  7. * This program is free software: you can redistribute it and/or modify
  8. * it under the terms of the GNU Affero General Public License as
  9. * published by the Free Software Foundation, either version 3 of the
  10. * License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  19. *
  20. */
  21. namespace Tests\Settings;
  22. use Test\TestCase;
  23. class languageCodesTest extends TestCase {
  24. public function test() {
  25. $languageArray = include_once __DIR__ . '/../../settings/languageCodes.php';
  26. $expected = [
  27. 'el'=>'Ελληνικά',
  28. 'en'=>'English',
  29. 'fa'=>'فارسى',
  30. 'fi_FI'=>'Suomi',
  31. 'hi'=>'हिन्दी',
  32. 'id'=>'Bahasa Indonesia',
  33. 'lb'=>'Lëtzebuergesch',
  34. 'ms_MY'=>'Bahasa Melayu',
  35. 'nb_NO'=>'Norwegian Bokmål',
  36. 'pt_BR'=>'Português brasileiro',
  37. 'pt_PT'=>'Português',
  38. 'ro'=>'română',
  39. 'sr@latin'=>'Srpski',
  40. 'sv'=>'Svenska',
  41. 'hu_HU'=>'Magyar',
  42. 'hr'=>'Hrvatski',
  43. 'ar'=>'العربية',
  44. 'lv'=>'Latviešu',
  45. 'mk'=>'македонски',
  46. 'uk'=>'Українська',
  47. 'vi'=>'Tiếng Việt',
  48. 'zh_TW'=>'正體中文(臺灣)',
  49. 'af_ZA'=> 'Afrikaans',
  50. 'bn_BD'=>'Bengali',
  51. 'ta_LK'=>'தமிழ்',
  52. 'zh_HK'=>'繁體中文(香港)',
  53. 'is'=>'Icelandic',
  54. 'ka_GE'=>'Georgian for Georgia',
  55. 'ku_IQ'=>'Kurdish Iraq',
  56. 'si_LK'=>'Sinhala',
  57. 'be'=>'Belarusian',
  58. 'ka'=>'Kartuli (Georgian)',
  59. 'my_MM'=>'Burmese - MYANMAR ',
  60. 'ur_PK' =>'Urdu (Pakistan)',
  61. ];
  62. $this->assertSame($expected, $languageArray);
  63. }
  64. }