1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

Tests: Fix generating PDO after c7140c2

This commit is contained in:
Jakub Vrana
2025-03-31 10:50:17 +02:00
parent 27c688b902
commit 366342985d

View File

@@ -7,8 +7,8 @@ chdir(__DIR__);
foreach (glob("*.html") as $filename) {
if (!preg_match('~^pdo-|elastic|screenshots~', $filename)) {
$file = file_get_contents($filename);
$file = preg_replace_callback('~/(adminer(/sqlite)?|editor/example)\.php(\??)~', function ($match) {
return "/$match[1].php?ext=pdo" . ($match[3] ? "&" : "");
$file = preg_replace_callback('~/((adminer|editor)/[^?<]*)(\??)~', function ($match) {
return "/$match[1]?ext=pdo" . ($match[3] ? "&amp;" : "");
}, $file);
$file = str_replace("<tr><td>open</td><td>/coverage.php?coverage=0</td><td></td></tr>\n", "", $file);
$file = str_replace("<tr><td>click</td><td>link=Explain</td><td></td></tr>\n<tr><td>verifyTextPresent</td><td>Clustered Index Scan</td><td></td></tr>\n", "", $file); // MS SQL PDO doesn't support EXPLAIN