Skip to content

Commit f768f3d

Browse files
committed
Fix recently broken test case
This test was written to always use the sqlite PDO driver; however, that driver may no longer be available[1], and actually the test is supposed to work for all drivers – otherwise it should be placed in ext/pdo_sqlite/tests. [1] <938049b> Closes GH-8732.
1 parent 8e2378a commit f768f3d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/pdo/tests/bug_43663.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ class test extends PDO{
2323
if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.__DIR__ . '/../../pdo/tests/');
2424
require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc';
2525

26-
$a = new test('sqlite::memory:');
26+
$a = PDOTest::factory(test::class);
2727
$a->foo();
2828
$a->bar();
2929
?>

0 commit comments

Comments
 (0)