File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed
src/Symfony/Component/VarDumper/Tests/Caster Expand file tree Collapse file tree 1 file changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,8 @@ 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'
47
48
array:2 [
48
49
"\x00~\x00inTransaction" => false
49
50
"\x00~\x00attributes" => array:9 [
@@ -57,10 +58,31 @@ public function testCastPdo()
57
58
"STATEMENT_CLASS" => array:%d [
58
59
0 => "PDOStatement"%A
59
60
]
61
+ STRINGIFY_FETCHES => false
60
62
"DEFAULT_FETCH_MODE" => BOTH
61
63
]
62
64
]
63
65
EODUMP;
66
+ } else {
67
+ $ xDump = <<<'EODUMP'
68
+ array:2 [
69
+ "\x00~\x00inTransaction" => false
70
+ "\x00~\x00attributes" => array:9 [
71
+ "CASE" => NATURAL
72
+ "ERRMODE" => EXCEPTION
73
+ "PERSISTENT" => false
74
+ "DRIVER_NAME" => "sqlite"
75
+ "ORACLE_NULLS" => NATURAL
76
+ "CLIENT_VERSION" => "%s"
77
+ "SERVER_VERSION" => "%s"
78
+ "STATEMENT_CLASS" => array:%d [
79
+ 0 => "PDOStatement"%A
80
+ ]
81
+ "DEFAULT_FETCH_MODE" => BOTH
82
+ ]
83
+ ]
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