%PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµùÕ5sLOšuY
Server IP : www.kowitt.ac.th / Your IP : 216.73.216.118 Web Server : Microsoft-IIS/7.5 System : Windows NT SERVER02 6.1 build 7601 (Windows Server 2008 R2 Standard Edition Service Pack 1) i586 User : IUSR ( 0) PHP Version : 5.6.31 Disable Function : NONE MySQL : ON | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : C:/inetpub/wwwroot/phpMyAdmin/test/libraries/core/ |
Upload File : |
<?php /* vim: set expandtab sw=4 ts=4 sts=4: */ /** * * @package PhpMyAdmin-test */ /* * Include to test. */ require_once 'libraries/url_generating.lib.php'; /** * * @package PhpMyAdmin-test */ class PMA_GetLinks_Test extends PHPUnit_Framework_TestCase { /** * Set up * * @return void */ function setUp() { $GLOBALS['server'] = 99; $GLOBALS['cfg']['ServerDefault'] = 0; } /** * Test for PMA_getPHPDocLink * * @return void */ public function testGetPHPDocLink() { $lang = _pgettext('PHP documentation language', 'en'); $this->assertEquals( PMA_getPHPDocLink('function'), './url.php?url=https%3A%2F%2Fphp.net%2Fmanual%2F' . $lang . '%2Ffunction' ); } /** * Data provider for testLinkURL * * @return array */ public function providerLinkURL() { return array( array('http://wiki.phpmyadmin.net', './url.php?url=http%3A%2F%2Fwiki.phpmyadmin.net'), array('https://wiki.phpmyadmin.net', './url.php?url=https%3A%2F%2Fwiki.phpmyadmin.net'), array('wiki.phpmyadmin.net', 'wiki.phpmyadmin.net'), array('index.php?db=phpmyadmin', 'index.php?db=phpmyadmin') ); } /** * Test for PMA_linkURL * * @param string $link URL where to go * @param string $url Expected value * * @return void * * @dataProvider providerLinkURL */ public function testLinkURL($link, $url) { $this->assertEquals(PMA_linkURL($link), $url); } }