enableBc(); $GLOBALS['server'] = 1; $GLOBALS['db'] = 'db'; $GLOBALS['table'] = 'table'; $GLOBALS['PMA_PHP_SELF'] = 'index.php'; $GLOBALS['cfg']['Server']['DisableIS'] = false; } public function testIndexAction(): void { $response = new Response(); $controller = new CollationsController($response, new Template(), $GLOBALS['dbi']); $controller->index(); $actual = $response->getHTMLResult(); $this->assertStringContainsString( '
| Unicode, case-insensitive | ', $actual ); $this->assertStringContainsString( 'cp1252 West European', $actual ); $this->assertStringContainsString( 'latin1_swedish_ci', $actual ); $this->assertStringContainsString( 'Swedish, case-insensitive | ', $actual ); } }