Skip to content

Commit d3fa66f

Browse files
committed
Diagnostic: reproduce testFromBase64Function setup in isolation
1 parent 77f1e10 commit d3fa66f

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/phpunit-tests-turso.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -772,6 +772,20 @@ jobs:
772772
$log('[e] EXC: ' . $e->getMessage());
773773
}
774774
775+
// 5) Reproduce the actual testFromBase64Function setup exactly: run
776+
// setUp-style driver construction and then call FROM_BASE64.
777+
try {
778+
$pdo2 = new PDO\SQLite('sqlite::memory:');
779+
$pdo2->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
780+
require __DIR__ . '/tests/bootstrap.php';
781+
$engine = new WP_SQLite_Driver(new WP_SQLite_Connection(['pdo' => $pdo2]), 'wp');
782+
$log('[f] driver constructed');
783+
$r = $engine->query("SELECT FROM_BASE64('SGVsbG8gV29ybGQ=') AS decoded");
784+
$log('[f.call] ' . json_encode($r));
785+
} catch (\Throwable $e) {
786+
$log('[f] EXC: ' . $e->getMessage());
787+
}
788+
775789
$log('[done] script finished cleanly');
776790
PHP
777791

0 commit comments

Comments
 (0)