@@ -97,6 +97,8 @@ public static function provideDsn()
9797 }
9898
9999 /**
100+ * @param class-string<AbstractPlatform>
101+ *
100102 * @dataProvider providePlatforms
101103 */
102104 public function testCreatesTableInTransaction (string $ platform )
@@ -128,7 +130,7 @@ public function testCreatesTableInTransaction(string $platform)
128130 ->willReturn (true );
129131
130132 $ platform = $ this ->createMock ($ platform );
131- $ platform ->method (method_exists (AbstractPlatform::class, 'getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : ' getCreateTableSQL ' )
133+ $ platform ->method ('getCreateTablesSQL ' )
132134 ->willReturn (['create sql stmt ' ]);
133135
134136 $ conn ->method ('getDatabasePlatform ' )
@@ -144,10 +146,8 @@ public function testCreatesTableInTransaction(string $platform)
144146 public static function providePlatforms (): \Generator
145147 {
146148 yield [\Doctrine \DBAL \Platforms \PostgreSQLPlatform::class];
147- yield [\Doctrine \DBAL \Platforms \PostgreSQL94Platform::class];
148149 yield [\Doctrine \DBAL \Platforms \SqlitePlatform::class];
149150 yield [\Doctrine \DBAL \Platforms \SQLServerPlatform::class];
150- yield [\Doctrine \DBAL \Platforms \SQLServer2012Platform::class];
151151 }
152152
153153 public function testTableCreationInTransactionNotSupported ()
@@ -178,7 +178,7 @@ public function testTableCreationInTransactionNotSupported()
178178 ->willReturn (true );
179179
180180 $ platform = $ this ->createMock (AbstractPlatform::class);
181- $ platform ->method (method_exists (AbstractPlatform::class, 'getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : ' getCreateTableSQL ' )
181+ $ platform ->method ('getCreateTablesSQL ' )
182182 ->willReturn (['create sql stmt ' ]);
183183
184184 $ conn ->expects ($ this ->atLeast (2 ))
@@ -220,7 +220,7 @@ public function testCreatesTableOutsideTransaction()
220220 ->willReturn (false );
221221
222222 $ platform = $ this ->createMock (AbstractPlatform::class);
223- $ platform ->method (method_exists (AbstractPlatform::class, 'getCreateTablesSQL ' ) ? ' getCreateTablesSQL ' : ' getCreateTableSQL ' )
223+ $ platform ->method ('getCreateTablesSQL ' )
224224 ->willReturn (['create sql stmt ' ]);
225225
226226 $ conn ->method ('getDatabasePlatform ' )
0 commit comments