Translation update done using Pootle.
[phpmyadmin/ammaryasirr.git] / test / libraries / select_lang / PMA_langName_test.php
blob892d114265a2fe4bc69304fa0aaa7cac88b87f47
1 <?php
2 /* vim: set expandtab sw=4 ts=4 sts=4: */
3 /**
4 * Test for PMA_langName from select_lang.lib.php
6 * @package phpMyAdmin-test
7 * @version $Id: PMA_langName_test.php
8 * @group select_lang.lib-tests
9 */
12 * Include to test.
14 require_once 'libraries/select_lang.lib.php';
16 class PMA_langName_test extends PHPUnit_Framework_TestCase
18 function dataProvider()
20 return array(
21 array(array('en|english', 'en', ''),'English'),
22 array(array('fr|french', 'fr', 'Fran&ccedil;ais'), 'Fran&ccedil;ais - French'),
23 array(array('zh|chinese simplified', 'zh', '&#20013;&#25991;'), '&#20013;&#25991; - Chinese simplified'),
27 /**
28 * @dataProvider dataProvider
29 * @return void
31 function testLangName($test, $result)
33 $this->assertEquals($result, PMA_langName($test));