@@ -395,6 +395,36 @@ public function provideApplyTestData(): array
395
395
],
396
396
$ filterFactory ,
397
397
],
398
+ 'partial (multiple values) ' => [
399
+ [
400
+ [
401
+ '$match ' => [
402
+ 'name ' => [
403
+ '$in ' => [
404
+ new Regex ('CaSE ' ),
405
+ new Regex ('SENSitive ' ),
406
+ ],
407
+ ],
408
+ ],
409
+ ],
410
+ ],
411
+ $ filterFactory ,
412
+ ],
413
+ 'partial (multiple values; case insensitive) ' => [
414
+ [
415
+ [
416
+ '$match ' => [
417
+ 'name ' => [
418
+ '$in ' => [
419
+ new Regex ('CaSE ' , 'i ' ),
420
+ new Regex ('inSENSitive ' , 'i ' ),
421
+ ],
422
+ ],
423
+ ],
424
+ ],
425
+ ],
426
+ $ filterFactory ,
427
+ ],
398
428
'start ' => [
399
429
[
400
430
[
@@ -423,6 +453,36 @@ public function provideApplyTestData(): array
423
453
],
424
454
$ filterFactory ,
425
455
],
456
+ 'start (multiple values) ' => [
457
+ [
458
+ [
459
+ '$match ' => [
460
+ 'name ' => [
461
+ '$in ' => [
462
+ new Regex ('^CaSE ' ),
463
+ new Regex ('^SENSitive ' ),
464
+ ],
465
+ ],
466
+ ],
467
+ ],
468
+ ],
469
+ $ filterFactory ,
470
+ ],
471
+ 'start (multiple values; case insensitive) ' => [
472
+ [
473
+ [
474
+ '$match ' => [
475
+ 'name ' => [
476
+ '$in ' => [
477
+ new Regex ('^CaSE ' , 'i ' ),
478
+ new Regex ('^inSENSitive ' , 'i ' ),
479
+ ],
480
+ ],
481
+ ],
482
+ ],
483
+ ],
484
+ $ filterFactory ,
485
+ ],
426
486
'end ' => [
427
487
[
428
488
[
@@ -451,6 +511,36 @@ public function provideApplyTestData(): array
451
511
],
452
512
$ filterFactory ,
453
513
],
514
+ 'end (multiple values) ' => [
515
+ [
516
+ [
517
+ '$match ' => [
518
+ 'name ' => [
519
+ '$in ' => [
520
+ new Regex ('CaSE$ ' ),
521
+ new Regex ('SENSitive$ ' ),
522
+ ],
523
+ ],
524
+ ],
525
+ ],
526
+ ],
527
+ $ filterFactory ,
528
+ ],
529
+ 'end (multiple values; case insensitive) ' => [
530
+ [
531
+ [
532
+ '$match ' => [
533
+ 'name ' => [
534
+ '$in ' => [
535
+ new Regex ('CaSE$ ' , 'i ' ),
536
+ new Regex ('inSENSitive$ ' , 'i ' ),
537
+ ],
538
+ ],
539
+ ],
540
+ ],
541
+ ],
542
+ $ filterFactory ,
543
+ ],
454
544
'word_start ' => [
455
545
[
456
546
[
@@ -479,6 +569,36 @@ public function provideApplyTestData(): array
479
569
],
480
570
$ filterFactory ,
481
571
],
572
+ 'word_start (multiple values) ' => [
573
+ [
574
+ [
575
+ '$match ' => [
576
+ 'name ' => [
577
+ '$in ' => [
578
+ new Regex ('(^CaSE.*|.*\sCaSE.*) ' ),
579
+ new Regex ('(^SENSitive.*|.*\sSENSitive.*) ' ),
580
+ ],
581
+ ],
582
+ ],
583
+ ],
584
+ ],
585
+ $ filterFactory ,
586
+ ],
587
+ 'word_start (multiple values; case insensitive) ' => [
588
+ [
589
+ [
590
+ '$match ' => [
591
+ 'name ' => [
592
+ '$in ' => [
593
+ new Regex ('(^CaSE.*|.*\sCaSE.*) ' , 'i ' ),
594
+ new Regex ('(^inSENSitive.*|.*\sinSENSitive.*) ' , 'i ' ),
595
+ ],
596
+ ],
597
+ ],
598
+ ],
599
+ ],
600
+ $ filterFactory ,
601
+ ],
482
602
'invalid value for relation ' => [
483
603
[],
484
604
$ filterFactory ,
0 commit comments