File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -169,11 +169,14 @@ public function testRegisterListAndUnRegisterAqlUserFunctionWithGettersAndSetter
169
169
);
170
170
171
171
// Check giving the set method a non-string key
172
+ $ caught = false ;
172
173
try {
173
174
$ userFunction ->set (1 , 1 );
174
175
} catch (ClientException $ e ) {
175
- echo ' Caught expected exception ' ;
176
+ $ caught = true ;
176
177
}
178
+
179
+ static ::assertTrue ($ caught );
177
180
178
181
179
182
$ result = $ userFunction ->register ();
Original file line number Diff line number Diff line change @@ -208,12 +208,15 @@ public function testCreateDocumentBatchWithDefinedBatchSize()
208
208
$ batch ->stopCapture ();
209
209
210
210
// Check giving the set method a non-string key
211
+ $ caught = false ;
211
212
try {
212
213
$ batch ->stopCapture ();
213
214
} catch (ClientException $ e ) {
214
- echo ' Caught expected exception ' ;
215
+ $ caught = true ;
215
216
}
216
217
218
+ static ::assertTrue ($ caught );
219
+
217
220
218
221
$ batch ->process ();
219
222
You can’t perform that action at this time.
0 commit comments