@@ -234,9 +234,9 @@ public function testAtlasDataLake(UnifiedTestCase $test): void
234
234
self ::$ runner ->run ($ test );
235
235
}
236
236
237
- public function provideAtlasDataLakeTests ()
237
+ public static function provideAtlasDataLakeTests (): Generator
238
238
{
239
- return $ this -> provideTests (__DIR__ . '/atlas-data-lake/*.json ' );
239
+ return self :: provideTests (__DIR__ . '/atlas-data-lake/*.json ' );
240
240
}
241
241
242
242
/**
@@ -248,9 +248,9 @@ public function testChangeStreams(UnifiedTestCase $test): void
248
248
self ::$ runner ->run ($ test );
249
249
}
250
250
251
- public function provideChangeStreamsTests ()
251
+ public static function provideChangeStreamsTests (): Generator
252
252
{
253
- return $ this -> provideTests (__DIR__ . '/change-streams/*.json ' );
253
+ return self :: provideTests (__DIR__ . '/change-streams/*.json ' );
254
254
}
255
255
256
256
/**
@@ -263,9 +263,9 @@ public function testClientSideEncryption(UnifiedTestCase $test): void
263
263
self ::$ runner ->run ($ test );
264
264
}
265
265
266
- public function provideClientSideEncryptionTests ()
266
+ public static function provideClientSideEncryptionTests (): Generator
267
267
{
268
- return $ this -> provideTests (__DIR__ . '/client-side-encryption/*.json ' );
268
+ return self :: provideTests (__DIR__ . '/client-side-encryption/*.json ' );
269
269
}
270
270
271
271
/**
@@ -277,9 +277,9 @@ public function testCollectionManagement(UnifiedTestCase $test): void
277
277
self ::$ runner ->run ($ test );
278
278
}
279
279
280
- public function provideCollectionManagementTests ()
280
+ public static function provideCollectionManagementTests (): Generator
281
281
{
282
- return $ this -> provideTests (__DIR__ . '/collection-management/*.json ' );
282
+ return self :: provideTests (__DIR__ . '/collection-management/*.json ' );
283
283
}
284
284
285
285
/**
@@ -291,9 +291,9 @@ public function testCommandMonitoring(UnifiedTestCase $test): void
291
291
self ::$ runner ->run ($ test );
292
292
}
293
293
294
- public function provideCommandMonitoringTests ()
294
+ public static function provideCommandMonitoringTests (): Generator
295
295
{
296
- return $ this -> provideTests (__DIR__ . '/command-monitoring/*.json ' );
296
+ return self :: provideTests (__DIR__ . '/command-monitoring/*.json ' );
297
297
}
298
298
299
299
/**
@@ -305,9 +305,9 @@ public function testCrud(UnifiedTestCase $test): void
305
305
self ::$ runner ->run ($ test );
306
306
}
307
307
308
- public function provideCrudTests ()
308
+ public static function provideCrudTests (): Generator
309
309
{
310
- return $ this -> provideTests (__DIR__ . '/crud/*.json ' );
310
+ return self :: provideTests (__DIR__ . '/crud/*.json ' );
311
311
}
312
312
313
313
/**
@@ -319,9 +319,9 @@ public function testGridFS(UnifiedTestCase $test): void
319
319
self ::$ runner ->run ($ test );
320
320
}
321
321
322
- public function provideGridFSTests ()
322
+ public static function provideGridFSTests (): Generator
323
323
{
324
- return $ this -> provideTests (__DIR__ . '/gridfs/*.json ' );
324
+ return self :: provideTests (__DIR__ . '/gridfs/*.json ' );
325
325
}
326
326
327
327
/**
@@ -333,9 +333,9 @@ public function testLoadBalancers(UnifiedTestCase $test): void
333
333
self ::$ runner ->run ($ test );
334
334
}
335
335
336
- public function provideLoadBalancers ()
336
+ public static function provideLoadBalancers (): Generator
337
337
{
338
- return $ this -> provideTests (__DIR__ . '/load-balancers/*.json ' );
338
+ return self :: provideTests (__DIR__ . '/load-balancers/*.json ' );
339
339
}
340
340
341
341
/** @dataProvider provideReadWriteConcernTests */
@@ -344,9 +344,9 @@ public function testReadWriteConcern(UnifiedTestCase $test): void
344
344
self ::$ runner ->run ($ test );
345
345
}
346
346
347
- public function provideReadWriteConcernTests ()
347
+ public static function provideReadWriteConcernTests (): Generator
348
348
{
349
- return $ this -> provideTests (__DIR__ . '/read-write-concern/*.json ' );
349
+ return self :: provideTests (__DIR__ . '/read-write-concern/*.json ' );
350
350
}
351
351
352
352
/**
@@ -358,9 +358,9 @@ public function testRetryableReads(UnifiedTestCase $test): void
358
358
self ::$ runner ->run ($ test );
359
359
}
360
360
361
- public function provideRetryableReadsTests ()
361
+ public static function provideRetryableReadsTests (): Generator
362
362
{
363
- return $ this -> provideTests (__DIR__ . '/retryable-reads/*.json ' );
363
+ return self :: provideTests (__DIR__ . '/retryable-reads/*.json ' );
364
364
}
365
365
366
366
/**
@@ -372,9 +372,9 @@ public function testRetryableWrites(UnifiedTestCase $test): void
372
372
self ::$ runner ->run ($ test );
373
373
}
374
374
375
- public function provideRetryableWritesTests ()
375
+ public static function provideRetryableWritesTests (): Generator
376
376
{
377
- return $ this -> provideTests (__DIR__ . '/retryable-writes/*.json ' );
377
+ return self :: provideTests (__DIR__ . '/retryable-writes/*.json ' );
378
378
}
379
379
380
380
/**
@@ -386,9 +386,9 @@ public function testRunCommand(UnifiedTestCase $test): void
386
386
self ::$ runner ->run ($ test );
387
387
}
388
388
389
- public function provideRunCommandTests ()
389
+ public static function provideRunCommandTests (): Generator
390
390
{
391
- return $ this -> provideTests (__DIR__ . '/run-command/*.json ' );
391
+ return self :: provideTests (__DIR__ . '/run-command/*.json ' );
392
392
}
393
393
394
394
/**
@@ -400,9 +400,9 @@ public function testSessions(UnifiedTestCase $test): void
400
400
self ::$ runner ->run ($ test );
401
401
}
402
402
403
- public function provideSessionsTests ()
403
+ public static function provideSessionsTests (): Generator
404
404
{
405
- return $ this -> provideTests (__DIR__ . '/sessions/*.json ' );
405
+ return self :: provideTests (__DIR__ . '/sessions/*.json ' );
406
406
}
407
407
408
408
/**
@@ -414,9 +414,9 @@ public function testTransactions(UnifiedTestCase $test): void
414
414
self ::$ runner ->run ($ test );
415
415
}
416
416
417
- public function provideTransactionsTests ()
417
+ public static function provideTransactionsTests (): Generator
418
418
{
419
- return $ this -> provideTests (__DIR__ . '/transactions/*.json ' );
419
+ return self :: provideTests (__DIR__ . '/transactions/*.json ' );
420
420
}
421
421
422
422
/** @dataProvider provideTransactionsConvenientApiTests */
@@ -425,9 +425,9 @@ public function testTransactionsConvenientApi(UnifiedTestCase $test): void
425
425
self ::$ runner ->run ($ test );
426
426
}
427
427
428
- public function provideTransactionsConvenientApiTests ()
428
+ public static function provideTransactionsConvenientApiTests (): Generator
429
429
{
430
- return $ this -> provideTests (__DIR__ . '/transactions-convenient-api/*.json ' );
430
+ return self :: provideTests (__DIR__ . '/transactions-convenient-api/*.json ' );
431
431
}
432
432
433
433
/**
@@ -440,9 +440,9 @@ public function testVersionedApi(UnifiedTestCase $test): void
440
440
self ::$ runner ->run ($ test );
441
441
}
442
442
443
- public function provideVersionedApiTests ()
443
+ public static function provideVersionedApiTests (): Generator
444
444
{
445
- return $ this -> provideTests (__DIR__ . '/versioned-api/*.json ' );
445
+ return self :: provideTests (__DIR__ . '/versioned-api/*.json ' );
446
446
}
447
447
448
448
/** @dataProvider providePassingTests */
@@ -451,9 +451,9 @@ public function testPassingTests(UnifiedTestCase $test): void
451
451
self ::$ runner ->run ($ test );
452
452
}
453
453
454
- public function providePassingTests ()
454
+ public static function providePassingTests (): Generator
455
455
{
456
- yield from $ this -> provideTests (__DIR__ . '/valid-pass/*.json ' );
456
+ yield from self :: provideTests (__DIR__ . '/valid-pass/*.json ' );
457
457
}
458
458
459
459
/** @dataProvider provideFailingTests */
@@ -489,9 +489,9 @@ public function testFailingTests(UnifiedTestCase $test): void
489
489
$ this ->assertTrue ($ failed , 'Expected test to throw an exception ' );
490
490
}
491
491
492
- public function provideFailingTests ()
492
+ public static function provideFailingTests (): Generator
493
493
{
494
- yield from $ this -> provideTests (__DIR__ . '/valid-fail/*.json ' );
494
+ yield from self :: provideTests (__DIR__ . '/valid-fail/*.json ' );
495
495
}
496
496
497
497
/** @dataProvider provideIndexManagementTests */
@@ -508,12 +508,12 @@ public function testIndexManagement(UnifiedTestCase $test): void
508
508
self ::$ runner ->run ($ test );
509
509
}
510
510
511
- public function provideIndexManagementTests ()
511
+ public static function provideIndexManagementTests (): Generator
512
512
{
513
- yield from $ this -> provideTests (__DIR__ . '/index-management/*.json ' );
513
+ yield from self :: provideTests (__DIR__ . '/index-management/*.json ' );
514
514
}
515
515
516
- private function provideTests (string $ pattern ): Generator
516
+ private static function provideTests (string $ pattern ): Generator
517
517
{
518
518
foreach (glob ($ pattern ) as $ filename ) {
519
519
$ group = basename (dirname ($ filename ));
0 commit comments