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 @@ -150,8 +150,9 @@ public function testTransactionLevelNotIncrementedOnTransactionException()
150
150
public function testBeginTransactionMethodRetriesOnFailure ()
151
151
{
152
152
$ pdo = $ this ->createMock (DatabaseConnectionTestMockPDO::class);
153
- $ pdo ->expects ($ this ->exactly (2 ))->method ('beginTransaction ' );
154
- $ pdo ->expects ($ this ->at (0 ))->method ('beginTransaction ' )->will ($ this ->throwException (new ErrorException ('server has gone away ' )));
153
+ $ pdo ->expects ($ this ->at (0 ))
154
+ ->method ('beginTransaction ' )
155
+ ->will ($ this ->throwException (new ErrorException ('server has gone away ' )));
155
156
$ connection = $ this ->getMockConnection (['reconnect ' ], $ pdo );
156
157
$ connection ->expects ($ this ->once ())->method ('reconnect ' );
157
158
$ connection ->beginTransaction ();
You can’t perform that action at this time.
0 commit comments