@@ -275,7 +275,7 @@ public function testDisconnectClearsTransactionManagerState()
275275
276276 public function testBeganTransactionFiresEventsIfSet ()
277277 {
278- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
278+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
279279 $ connection = $ this ->getMockConnection (['getName ' ], $ pdo );
280280 $ connection ->method ('getName ' )->willReturn ('name ' );
281281 $ connection ->setEventDispatcher ($ events = m::mock (Dispatcher::class));
@@ -285,7 +285,7 @@ public function testBeganTransactionFiresEventsIfSet()
285285
286286 public function testCommittedFiresEventsIfSet ()
287287 {
288- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
288+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
289289 $ connection = $ this ->getMockConnection (['getName ' ], $ pdo );
290290 $ connection ->method ('getName ' )->willReturn ('name ' );
291291 $ connection ->setEventDispatcher ($ events = m::mock (Dispatcher::class));
@@ -295,7 +295,7 @@ public function testCommittedFiresEventsIfSet()
295295
296296 public function testCommittingFiresEventsIfSet ()
297297 {
298- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
298+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
299299 $ connection = $ this ->getMockConnection (['getName ' , 'transactionLevel ' ], $ pdo );
300300 $ connection ->method ('getName ' )->willReturn ('name ' );
301301 $ connection ->method ('transactionLevel ' )->willReturn (1 );
@@ -307,7 +307,7 @@ public function testCommittingFiresEventsIfSet()
307307
308308 public function testRollBackedFiresEventsIfSet ()
309309 {
310- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
310+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
311311 $ connection = $ this ->getMockConnection (['getName ' ], $ pdo );
312312 $ connection ->method ('getName ' )->willReturn ('name ' );
313313 $ connection ->beginTransaction ();
@@ -318,7 +318,7 @@ public function testRollBackedFiresEventsIfSet()
318318
319319 public function testRedundantRollBackFiresNoEvent ()
320320 {
321- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
321+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
322322 $ connection = $ this ->getMockConnection (['getName ' ], $ pdo );
323323 $ connection ->method ('getName ' )->willReturn ('name ' );
324324 $ connection ->setEventDispatcher ($ events = m::mock (Dispatcher::class));
@@ -450,7 +450,7 @@ public function testRunMethodRetriesOnFailure()
450450 {
451451 $ method = (new ReflectionClass (Connection::class))->getMethod ('run ' );
452452
453- $ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
453+ $ pdo = $ this ->createStub (DatabaseConnectionTestMockPDO::class);
454454 $ mock = $ this ->getMockConnection (['tryAgainIfCausedByLostConnection ' ], $ pdo );
455455 $ mock ->expects ($ this ->once ())->method ('tryAgainIfCausedByLostConnection ' );
456456
0 commit comments