public/phpmyadmin/test/classes/Display/ChangePasswordTest.php
/**
     * Test for ChangePassword::getHtml
     *
     * @return void
     */
Test for ChangePassword::getHtml
@return void
Test for ChangePassword :: getHtml @return void
public function testGetHtml()
    {
        $username = "pma_username";
        $hostname = "pma_hostname";
        $html = ChangePassword::getHtml('change_pw', $username, $hostname);
        $this->assertContains(
            $GLOBALS['PMA_PHP_SELF'],
            $html
        );
        $this->assertContains(
            Url::getHiddenInputs(),
            $html
        );
        $this->assertContains(
            htmlspecialchars($username),
            $html
        );
        $this->assertContains(
            htmlspecialchars($hostname),
            $html
        );
        $this->assertContains(
            __('Change password'),
            $html
        );
        $this->assertContains(
            __('No Password'),
            $html
        );
        $this->assertContains(
            __('Password:'),
            $html
        );
        $this->assertContains(
            __('Password:'),
            $html
        );
    }
public function testGetHtml ( ) { $ username = " pma_username " ; $ hostname = " pma_hostname " ; $ html = ChangePassword :: getHtml ( 'change_pw' , $ username , $ hostname ) ; $ this -> assertContains ( $ GLOBALS [ 'PMA_PHP_SELF' ] , $ html ) ; $ this -> assertContains ( Url :: getHiddenInputs ( ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( $ username ) , $ html ) ; $ this -> assertContains ( htmlspecialchars ( $ hostname ) , $ html ) ; $ this -> assertContains ( __ ( 'Change password' ) , $ html ) ; $ this -> assertContains ( __ ( 'No Password' ) , $ html ) ; $ this -> assertContains ( __ ( 'Password:' ) , $ html ) ; $ this -> assertContains ( __ ( 'Password:' ) , $ html ) ; }
Test for ChangePassword::getHtml
 @return void
Test for ChangePassword :: getHtml @return void
//Call the test function //PMA_PHP_SELF //Url::getHiddenInputs //$username & $hostname //labels