File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -146,8 +146,19 @@ public function testCreatesTableInTransaction(string $platform)
146
146
public static function providePlatforms (): \Generator
147
147
{
148
148
yield [\Doctrine \DBAL \Platforms \PostgreSQLPlatform::class];
149
+
150
+ // DBAL < 4
151
+ if (class_exists (\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class)) {
152
+ yield [\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class];
153
+ }
154
+
149
155
yield [\Doctrine \DBAL \Platforms \SqlitePlatform::class];
150
156
yield [\Doctrine \DBAL \Platforms \SQLServerPlatform::class];
157
+
158
+ // DBAL < 4
159
+ if (class_exists (\Doctrine \DBAL \Platforms \SQLServer2012Platform::class)) {
160
+ yield [\Doctrine \DBAL \Platforms \SQLServer2012Platform::class];
161
+ }
151
162
}
152
163
153
164
public function testTableCreationInTransactionNotSupported ()
Original file line number Diff line number Diff line change 20
20
"psr/log" : " ^1|^2|^3"
21
21
},
22
22
"require-dev" : {
23
- "doctrine/dbal" : " ^3.6" ,
23
+ "doctrine/dbal" : " ^3.6|^4 " ,
24
24
"predis/predis" : " ^1.1|^2.0"
25
25
},
26
26
"conflict" : {
You can’t perform that action at this time.
0 commit comments