2 /* vim: set expandtab sw=4 ts=4 sts=4: */
4 * Tests for Config Functions
6 * @package PhpMyAdmin-test
12 require_once 'libraries/config/config_functions.lib.php';
15 * Tests for Config Functions
17 * @package PhpMyAdmin-test
19 class PMA_Config_Functions_Test
extends PHPUnit_Framework_TestCase
27 public function testPMALang()
30 "<a attr='value'>test</a>",
31 PMA_lang("<a attr='value'>test</a>")
34 $GLOBALS["strConfiglangKeyFooBar"] = "<a attr='value'>[em]test[/em]</a>";
37 "<a attr='value'><em>test</em></a>",
38 PMA_lang("langKeyFooBar")
43 PMA_lang("%04d-%02d-%02d", "1988", "8", "1")
48 * Test for PMA_langName
53 public function testLangName()
55 $canonicalPath = "Servers/1/2test";
59 PMA_langName($canonicalPath)
64 PMA_langName($canonicalPath, "name", "returnsDefault")
67 $GLOBALS["strConfigServers_2test_name"] = "<a>msg</a>";
71 PMA_langName($canonicalPath)
74 $GLOBALS["strConfigServers_2test_desc"] = "<a>msg</a>";
77 "<a>msg</a>",
78 PMA_langName($canonicalPath, "desc")