enableBc(); parent::setTheme(); $GLOBALS['text_dir'] = 'ltr'; $GLOBALS['server'] = 1; $GLOBALS['db'] = 'db'; $GLOBALS['table'] = 'table'; $GLOBALS['PMA_PHP_SELF'] = 'index.php'; $GLOBALS['cfg']['Server']['DisableIS'] = false; $GLOBALS['cfg']['Server']['host'] = 'localhost'; $this->data = new Data(); } public function testIndex(): void { $response = new Response(); $controller = new VariablesController($response, new Template(), $this->data, $GLOBALS['dbi']); $controller->index(); $html = $response->getHTMLResult(); $this->assertStringContainsString( '
', $html ); $this->assertStringContainsString( 'index.php?route=/server/status/variables', $html ); $this->assertStringContainsString( '', $html ); $this->assertStringContainsString( '