enableBc(); $GLOBALS['cfg']['MaxRows'] = 10; $GLOBALS['cfg']['ServerDefault'] = 'server'; $GLOBALS['cfg']['Server']['DisableIS'] = false; $GLOBALS['server'] = 1; $GLOBALS['db'] = 'db'; $GLOBALS['table'] = 'table'; $GLOBALS['PMA_PHP_SELF'] = 'index.php'; SessionCache::set('profiling_supported', true); } public function testIndex(): void { $response = new Response(); $controller = new BinlogController($response, new Template(), $GLOBALS['dbi']); $_POST['log'] = 'index1'; $_POST['pos'] = '3'; $controller->index(); $actual = $response->getHTMLResult(); $this->assertStringContainsString( 'Select binary log to view', $actual ); $this->assertStringContainsString( '