public/phpmyadmin/test/classes/Server/Status/MonitorTest.php
/**
     * Test for Monitor::getHtmlForClientSideDataAndLinks
     *
     * @return void
     */
Test for Monitor::getHtmlForClientSideDataAndLinks
@return void
Test for Monitor :: getHtmlForClientSideDataAndLinks @return void
public function testPMAGetHtmlForClientSideDataAndLinks()
    {
        $html = Monitor::getHtmlForClientSideDataAndLinks($this->serverStatusData);
        $from = '<form id="js_data" class="hide">'
            . '<input type="hidden" name="server_time"';
        $this->assertContains(
            $from,
            $html
        );
        $this->assertContains(
            '<input type="hidden" name="is_superuser"',
            $html
        );
        $this->assertContains(
            '<input type="hidden" name="server_db_isLocal"',
            $html
        );
        $this->assertContains(
            '<div id="explain_docu" class="hide">',
            $html
        );
    }
public function testPMAGetHtmlForClientSideDataAndLinks ( ) { $ html = Monitor :: getHtmlForClientSideDataAndLinks ( $ this -> serverStatusData ) ; $ from = '<form id="js_data" class="hide">' . '<input type="hidden" name="server_time"' ; $ this -> assertContains ( $ from , $ html ) ; $ this -> assertContains ( '<input type="hidden" name="is_superuser"' , $ html ) ; $ this -> assertContains ( '<input type="hidden" name="server_db_isLocal"' , $ html ) ; $ this -> assertContains ( '<div id="explain_docu" class="hide">' , $ html ) ; }
Test for Monitor::getHtmlForClientSideDataAndLinks
 @return void
Test for Monitor :: getHtmlForClientSideDataAndLinks @return void
//Call the test function //validate 1: Monitor::getHtmlForClientSideDataAndLinks //validate 2: inputs