File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -151,8 +151,9 @@ public function testTransactionLevelNotIncrementedOnTransactionException()
151
151
public function testBeginTransactionMethodRetriesOnFailure ()
152
152
{
153
153
$ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
154
- $ pdo ->expects ($ this ->exactly (2 ))->method ('beginTransaction ' );
155
- $ pdo ->expects ($ this ->at (0 ))->method ('beginTransaction ' )->will ($ this ->throwException (new ErrorException ('server has gone away ' )));
154
+ $ pdo ->expects ($ this ->at (0 ))
155
+ ->method ('beginTransaction ' )
156
+ ->will ($ this ->throwException (new ErrorException ('server has gone away ' )));
156
157
$ connection = $ this ->getMockConnection (['reconnect ' ], $ pdo );
157
158
$ connection ->expects ($ this ->once ())->method ('reconnect ' );
158
159
$ connection ->beginTransaction ();
You can’t perform that action at this time.
0 commit comments