/**
  * Test for PMA_getJsonForLoggingVars
  *
  * @return void
  */
 public function testPMAGetJsonForLoggingVars()
 {
     $_REQUEST['varName'] = "varName";
     //Mock DBI
     $dbi = $this->getMockBuilder('PMA\\libraries\\DatabaseInterface')->disableOriginalConstructor()->getMock();
     $value = array('sql_text' => 'insert sql_text', '#' => 'types', 'argument' => 'argument argument2');
     $dbi->expects($this->any())->method('fetchResult')->will($this->returnValue($value));
     $GLOBALS['dbi'] = $dbi;
     //Call the test function
     $ret = PMA_getJsonForLoggingVars();
     //validate that, the result is the same as fetchResult
     $this->assertEquals($value, $ret);
 }
        }
        $start = intval($_REQUEST['time_start']);
        $end = intval($_REQUEST['time_end']);
        if ($_REQUEST['type'] == 'slow') {
            $return = PMA_getJsonForLogDataTypeSlow($start, $end);
            PMA_Response::getInstance()->addJSON('message', $return);
            exit;
        }
        if ($_REQUEST['type'] == 'general') {
            $return = PMA_getJsonForLogDataTypeGeneral($start, $end);
            PMA_Response::getInstance()->addJSON('message', $return);
            exit;
        }
    }
    if (isset($_REQUEST['logging_vars'])) {
        $loggingVars = PMA_getJsonForLoggingVars();
        PMA_Response::getInstance()->addJSON('message', $loggingVars);
        exit;
    }
    if (isset($_REQUEST['query_analyzer'])) {
        $return = PMA_getJsonForQueryAnalyzer();
        PMA_Response::getInstance()->addJSON('message', $return);
        exit;
    }
}
/**
 * JS Includes
 */
$header = $response->getHeader();
$scripts = $header->getScripts();
$scripts->addFile('jquery/jquery.tablesorter.js');