File tree 1 file changed +23
-1
lines changed
src/Symfony/Component/VarDumper/Tests/Caster
1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,28 @@ public function testCastPdo()
43
43
$ this ->assertSame ('NATURAL ' , $ attr ['CASE ' ]->class );
44
44
$ this ->assertSame ('BOTH ' , $ attr ['DEFAULT_FETCH_MODE ' ]->class );
45
45
46
- $ xDump = <<<'EODUMP'
46
+ if (\PHP_VERSION_ID >= 80215 && \PHP_VERSION_ID < 80300 || \PHP_VERSION_ID >= 80302 ) {
47
+ $ xDump = <<<'EODUMP'
48
+ array:2 [
49
+ "\x00~\x00inTransaction" => false
50
+ "\x00~\x00attributes" => array:10 [
51
+ "CASE" => NATURAL
52
+ "ERRMODE" => EXCEPTION
53
+ "PERSISTENT" => false
54
+ "DRIVER_NAME" => "sqlite"
55
+ "ORACLE_NULLS" => NATURAL
56
+ "CLIENT_VERSION" => "%s"
57
+ "SERVER_VERSION" => "%s"
58
+ "STATEMENT_CLASS" => array:%d [
59
+ 0 => "PDOStatement"%A
60
+ ]
61
+ "STRINGIFY_FETCHES" => false
62
+ "DEFAULT_FETCH_MODE" => BOTH
63
+ ]
64
+ ]
65
+ EODUMP;
66
+ } else {
67
+ $ xDump = <<<'EODUMP'
47
68
array:2 [
48
69
"\x00~\x00inTransaction" => false
49
70
"\x00~\x00attributes" => array:9 [
@@ -61,6 +82,7 @@ public function testCastPdo()
61
82
]
62
83
]
63
84
EODUMP;
85
+ }
64
86
65
87
$ this ->assertDumpMatchesFormat ($ xDump , $ cast );
66
88
}
You can’t perform that action at this time.
0 commit comments