Skip to content

Commit 6b2faa6

Browse files
committed
Fix PDO class used in proxy tests with older PHP
1 parent d2c458f commit 6b2faa6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/wp-mysql-proxy/tests/WP_MySQL_Proxy_PDO_Test.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class WP_MySQL_Proxy_PDO_Test extends WP_MySQL_Proxy_Test {
77
public function setUp(): void {
88
parent::setUp();
99

10-
$pdo_class = PHP_VERSION_ID >= 80400 ? PDO\SQLite::class : PDO::class;
10+
$pdo_class = PHP_VERSION_ID >= 80400 ? PDO\MySQL::class : PDO::class;
1111
$this->pdo = new $pdo_class(
1212
sprintf( 'mysql:host=127.0.0.1;port=%d', $this->port ),
1313
'user',

0 commit comments

Comments
 (0)