File tree Expand file tree Collapse file tree 1 file changed +23
-1
lines changed 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,28 @@ public function testCastPdo()
4343 $ this ->assertSame ('NATURAL ' , $ attr ['CASE ' ]->class );
4444 $ this ->assertSame ('BOTH ' , $ attr ['DEFAULT_FETCH_MODE ' ]->class );
4545
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'
4768array:2 [
4869 "\x00~\x00inTransaction" => false
4970 "\x00~\x00attributes" => array:9 [
@@ -61,6 +82,7 @@ public function testCastPdo()
6182 ]
6283]
6384EODUMP;
85+ }
6486
6587 $ this ->assertDumpMatchesFormat ($ xDump , $ cast );
6688 }
You can’t perform that action at this time.
0 commit comments