From: Christian Flothmann <christian.flothmann@qossmic.com>
Date: Wed, 17 Jan 2024 11:57:24 +0100
Subject: fix tests

Origin: upstream, https://github.com/symfony/symfony/commit/c3f0dc4ebb824afaeb78950b4f253b0062a19856
---
 .../VarDumper/Tests/Caster/PdoCasterTest.php       | 24 +++++++++++++++++++++-
 1 file changed, 23 insertions(+), 1 deletion(-)

diff --git a/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php b/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php
index 564c8a0..c6a96ec 100644
--- a/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php
+++ b/src/Symfony/Component/VarDumper/Tests/Caster/PdoCasterTest.php
@@ -43,7 +43,28 @@ class PdoCasterTest extends TestCase
         $this->assertSame('NATURAL', $attr['CASE']->class);
         $this->assertSame('BOTH', $attr['DEFAULT_FETCH_MODE']->class);
 
-        $xDump = <<<'EODUMP'
+        if (\PHP_VERSION_ID >= 80215 && \PHP_VERSION_ID < 80300 || \PHP_VERSION_ID >= 80302) {
+            $xDump = <<<'EODUMP'
+array:2 [
+  "\x00~\x00inTransaction" => false
+  "\x00~\x00attributes" => array:10 [
+    "CASE" => NATURAL
+    "ERRMODE" => EXCEPTION
+    "PERSISTENT" => false
+    "DRIVER_NAME" => "sqlite"
+    "ORACLE_NULLS" => NATURAL
+    "CLIENT_VERSION" => "%s"
+    "SERVER_VERSION" => "%s"
+    "STATEMENT_CLASS" => array:%d [
+      0 => "PDOStatement"%A
+    ]
+    "STRINGIFY_FETCHES" => false
+    "DEFAULT_FETCH_MODE" => BOTH
+  ]
+]
+EODUMP;
+        } else {
+            $xDump = <<<'EODUMP'
 array:2 [
   "\x00~\x00inTransaction" => false
   "\x00~\x00attributes" => array:9 [
@@ -61,6 +82,7 @@ array:2 [
   ]
 ]
 EODUMP;
+        }
 
         $this->assertDumpMatchesFormat($xDump, $cast);
     }
