enableBc(); $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'; $GLOBALS['replication_info']['master']['status'] = true; $GLOBALS['replication_info']['slave']['status'] = true; $GLOBALS['replication_types'] = []; $GLOBALS['pmaThemeImage'] = ''; $this->data = new Data(); } public function testIndex(): void { $response = new Response(); $controller = new MonitorController( $response, $GLOBALS['dbi'], new Template(), $this->data, new Monitor($GLOBALS['dbi']) ); $controller->index(); $html = $response->getHTMLResult(); $this->assertStringContainsString( '