2 /* vim: set expandtab sw=4 ts=4 sts=4: */
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
14 require_once 'libraries/select_lang.lib.php';
16 class PMA_langName_test
extends PHPUnit_Framework_TestCase
18 function dataProvider()
21 array(array('en|english', 'en', ''),'English'),
22 array(array('fr|french', 'fr', 'Français'), 'Français - French'),
23 array(array('zh|chinese simplified', 'zh', '中文'), '中文 - Chinese simplified'),
28 * @dataProvider dataProvider
31 function testLangName($test, $result)
33 $this->assertEquals($result, PMA_langName($test));