File tree Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Expand file tree Collapse file tree 1 file changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -159,14 +159,15 @@ public function testTableCreationInTransactionNotSupported()
159
159
$ conn ->expects ($ this ->atLeast (2 ))
160
160
->method ('executeStatement ' )
161
161
->willReturnCallback (function ($ sql ) use (&$ series ) {
162
- [$ constraint , $ return ] = array_shift ($ series );
163
- $ constraint ->evaluate ($ sql );
162
+ if ([$ constraint , $ return ] = array_shift ($ series )) {
163
+ $ constraint ->evaluate ($ sql );
164
+ }
164
165
165
166
if ($ return instanceof \Exception) {
166
167
throw $ return ;
167
168
}
168
169
169
- return $ return ;
170
+ return $ return ?? 1 ;
170
171
})
171
172
;
172
173
@@ -200,14 +201,15 @@ public function testCreatesTableOutsideTransaction()
200
201
$ conn ->expects ($ this ->atLeast (3 ))
201
202
->method ('executeStatement ' )
202
203
->willReturnCallback (function ($ sql ) use (&$ series ) {
203
- [$ constraint , $ return ] = array_shift ($ series );
204
- $ constraint ->evaluate ($ sql );
204
+ if ([$ constraint , $ return ] = array_shift ($ series )) {
205
+ $ constraint ->evaluate ($ sql );
206
+ }
205
207
206
208
if ($ return instanceof \Exception) {
207
209
throw $ return ;
208
210
}
209
211
210
- return $ return ;
212
+ return $ return ?? 1 ;
211
213
})
212
214
;
213
215
You can’t perform that action at this time.
0 commit comments