@@ -59,7 +59,7 @@ private function getExecuteStatementMockConnection(): Connection
59
59
{
60
60
$ driverMock = $ this ->createMock (Driver::class);
61
61
62
- $ driverMock-> expects ( self :: any ())
62
+ $ driverMock
63
63
->method ('connect ' )
64
64
->willReturn (
65
65
$ this ->createMock (DriverConnection::class),
@@ -184,7 +184,7 @@ public function testTransactionBeginDispatchEvent(): void
184
184
{
185
185
$ eventManager = new EventManager ();
186
186
$ driverMock = $ this ->createMock (Driver::class);
187
- $ driverMock-> expects ( self :: any ())
187
+ $ driverMock
188
188
->method ('connect ' )
189
189
->willReturn (
190
190
$ this ->createMock (DriverConnection::class),
@@ -210,7 +210,7 @@ public function testTransactionCommitDispatchEvent(): void
210
210
{
211
211
$ eventManager = new EventManager ();
212
212
$ driverMock = $ this ->createMock (Driver::class);
213
- $ driverMock-> expects ( self :: any ())
213
+ $ driverMock
214
214
->method ('connect ' )
215
215
->willReturn (
216
216
$ this ->createMock (DriverConnection::class),
@@ -237,7 +237,7 @@ public function testTransactionCommitEventNotCalledAfterRollBack(): void
237
237
{
238
238
$ eventManager = new EventManager ();
239
239
$ driverMock = $ this ->createMock (Driver::class);
240
- $ driverMock-> expects ( self :: any ())
240
+ $ driverMock
241
241
->method ('connect ' )
242
242
->willReturn (
243
243
$ this ->createMock (DriverConnection::class),
@@ -273,7 +273,7 @@ public function testTransactionRollBackDispatchEvent(): void
273
273
{
274
274
$ eventManager = new EventManager ();
275
275
$ driverMock = $ this ->createMock (Driver::class);
276
- $ driverMock-> expects ( self :: any ())
276
+ $ driverMock
277
277
->method ('connect ' )
278
278
->willReturn (
279
279
$ this ->createMock (DriverConnection::class),
@@ -307,7 +307,7 @@ public function testEventManagerPassedToPlatform(): void
307
307
->with ($ eventManager );
308
308
309
309
$ driver = $ this ->createMock (Driver::class);
310
- $ driver-> expects ( self :: any ())
310
+ $ driver
311
311
->method ('getDatabasePlatform ' )
312
312
->willReturn ($ platform );
313
313
@@ -380,7 +380,7 @@ public function testSetAutoCommit(): void
380
380
public function testConnectStartsTransactionInNoAutoCommitMode (): void
381
381
{
382
382
$ driverMock = $ this ->createMock (Driver::class);
383
- $ driverMock-> expects ( self :: any ())
383
+ $ driverMock
384
384
->method ('connect ' )
385
385
->willReturn (
386
386
$ this ->createMock (DriverConnection::class),
@@ -399,7 +399,7 @@ public function testConnectStartsTransactionInNoAutoCommitMode(): void
399
399
public function testCommitStartsTransactionInNoAutoCommitMode (): void
400
400
{
401
401
$ driverMock = $ this ->createMock (Driver::class);
402
- $ driverMock-> expects ( self :: any ())
402
+ $ driverMock
403
403
->method ('connect ' )
404
404
->willReturn (
405
405
$ this ->createMock (DriverConnection::class),
@@ -421,7 +421,7 @@ public function testCommitReturn(bool $expectedResult): void
421
421
->method ('commit ' )->willReturn ($ expectedResult );
422
422
423
423
$ driverMock = $ this ->createMock (Driver::class);
424
- $ driverMock-> expects ( self :: any ())
424
+ $ driverMock
425
425
->method ('connect ' )
426
426
->willReturn ($ driverConnection );
427
427
@@ -442,7 +442,7 @@ public static function resultProvider(): array
442
442
public function testRollBackStartsTransactionInNoAutoCommitMode (): void
443
443
{
444
444
$ driverMock = $ this ->createMock (Driver::class);
445
- $ driverMock-> expects ( self :: any ())
445
+ $ driverMock
446
446
->method ('connect ' )
447
447
->willReturn (
448
448
$ this ->createMock (DriverConnection::class),
@@ -459,7 +459,7 @@ public function testRollBackStartsTransactionInNoAutoCommitMode(): void
459
459
public function testSwitchingAutoCommitModeCommitsAllCurrentTransactions (): void
460
460
{
461
461
$ driverMock = $ this ->createMock (Driver::class);
462
- $ driverMock-> expects ( self :: any ())
462
+ $ driverMock
463
463
->method ('connect ' )
464
464
->willReturn (
465
465
$ this ->createMock (DriverConnection::class),
0 commit comments