File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed
src/Instrumentation/PDO/tests/Integration Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ private function createDBWithNewSubclass(): PDO
3232 $ this ->markTestSkipped ('Pdo\Sqlite class is not available in this PHP version ' );
3333 }
3434
35+ /** @psalm-suppress UndefinedMethod */
3536 return PDO ::connect ('sqlite::memory: ' );
3637 }
3738
@@ -86,6 +87,11 @@ public function test_pdo_construct(): void
8687 */
8788 public function test_pdo_sqlite_subclass (): void
8889 {
90+ // skip if php version is less than 8.4
91+ if (version_compare (PHP_VERSION , '8.4 ' , '< ' )) {
92+ $ this ->markTestSkipped ('Pdo\Sqlite class is not available in this PHP version ' );
93+ }
94+
8995 $ this ->assertCount (0 , $ this ->storage );
9096 /** @var Pdo\Sqlite $db */
9197 $ db = self ::createDBWithNewSubclass ();
You can’t perform that action at this time.
0 commit comments