@@ -297,15 +297,15 @@ public function testTransactionRetriesOnSerializationFailure()
297297    public  function  testTransactionMethodRetriesOnDeadlock ()
298298    {
299299        $ this expectException (QueryException::class);
300-         $ this expectExceptionMessage ('Deadlock found when trying to get lock (SQL: ) ' );
300+         $ this expectExceptionMessage ('Deadlock found when trying to get lock (Connection: conn,  SQL: ) ' );
301301
302302        $ pdo$ this getMockBuilder (DatabaseConnectionTestMockPDO::class)->onlyMethods (['beginTransaction ' , 'commit ' , 'rollBack ' ])->getMock ();
303303        $ mock$ this getMockConnection ([], $ pdo
304304        $ pdoexpects ($ this exactly (3 ))->method ('beginTransaction ' );
305305        $ pdoexpects ($ this exactly (3 ))->method ('rollBack ' );
306306        $ pdoexpects ($ this never ())->method ('commit ' );
307307        $ mocktransaction (function  () {
308-             throw  new  QueryException ('' , [], new  Exception ('Deadlock found when trying to get lock ' ));
308+             throw  new  QueryException ('conn '  ,  ' 'new  Exception ('Deadlock found when trying to get lock ' ));
309309        }, 3 );
310310    }
311311
@@ -328,7 +328,7 @@ public function testTransactionMethodRollsbackAndThrows()
328328    public  function  testOnLostConnectionPDOIsNotSwappedWithinATransaction ()
329329    {
330330        $ this expectException (QueryException::class);
331-         $ this expectExceptionMessage ('server has gone away (SQL: foo) ' );
331+         $ this expectExceptionMessage ('server has gone away (Connection: ,  SQL: foo) ' );
332332
333333        $ pdomock (PDO ::class);
334334        $ pdoshouldReceive ('beginTransaction ' )->once ();
@@ -374,14 +374,14 @@ public function testRunMethodRetriesOnFailure()
374374        $ mockexpects ($ this once ())->method ('tryAgainIfCausedByLostConnection ' );
375375
376376        $ methodinvokeArgs ($ mock'' , [], function  () {
377-             throw  new  QueryException ('' , [], new  Exception );
377+             throw  new  QueryException ('' , '' ,  [], new  Exception );
378378        }]);
379379    }
380380
381381    public  function  testRunMethodNeverRetriesIfWithinTransaction ()
382382    {
383383        $ this expectException (QueryException::class);
384-         $ this expectExceptionMessage ('(SQL: ) (SQL: ) ' );
384+         $ this expectExceptionMessage ('(Connection: conn,  SQL: ) (Connection: ,  SQL: ) ' );
385385
386386        $ methodnew  ReflectionClass (Connection::class))->getMethod ('run ' );
387387        $ methodsetAccessible (true );
@@ -393,7 +393,7 @@ public function testRunMethodNeverRetriesIfWithinTransaction()
393393        $ mockbeginTransaction ();
394394
395395        $ methodinvokeArgs ($ mock'' , [], function  () {
396-             throw  new  QueryException ('' , [], new  Exception );
396+             throw  new  QueryException ('conn '  ,  ' 'new  Exception );
397397        }]);
398398    }
399399
0 commit comments