From 681b58b70c3604b767bb58a29fa9c3a716b79ecb Mon Sep 17 00:00:00 2001 From: "Christoph M. Becker" Date: Wed, 8 Jun 2022 17:22:48 +0200 Subject: [PATCH] Fix recently broken test case MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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] --- ext/pdo/tests/bug_43663.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/pdo/tests/bug_43663.phpt b/ext/pdo/tests/bug_43663.phpt index c8236c787918e..dddf87748957f 100644 --- a/ext/pdo/tests/bug_43663.phpt +++ b/ext/pdo/tests/bug_43663.phpt @@ -23,7 +23,7 @@ class test extends PDO{ if (getenv('REDIR_TEST_DIR') === false) putenv('REDIR_TEST_DIR='.__DIR__ . '/../../pdo/tests/'); require_once getenv('REDIR_TEST_DIR') . 'pdo_test.inc'; -$a = new test('sqlite::memory:'); +$a = PDOTest::factory(test::class); $a->foo(); $a->bar(); ?>