@@ -608,7 +608,7 @@ public function testMethodDoesNotInheritReadWriteConcernInTranasaction(\Closure
608
608
609
609
(new CommandObserver )->observe (
610
610
function () use ($ method , $ collection , $ session ) {
611
- $ method -> call ( $ this , $ collection , $ session );
611
+ call_user_func ( $ method , $ collection , $ session );
612
612
},
613
613
function (array $ event ) {
614
614
$ this ->assertObjectNotHasAttribute ('writeConcern ' , $ event ['started ' ]->getCommand ());
@@ -632,12 +632,7 @@ public function testMethodInTransactionWithWriteConcernOption($method)
632
632
$ session ->startTransaction ();
633
633
634
634
try {
635
- $ method ->call (
636
- $ this , $ this ->collection , $ session ,
637
- [
638
- 'writeConcern ' => new WriteConcern (1 ),
639
- ]
640
- );
635
+ call_user_func ($ method , $ this ->collection , $ session , ['writeConcern ' => new WriteConcern (1 )]);
641
636
} finally {
642
637
$ session ->endSession ();
643
638
}
@@ -658,12 +653,7 @@ public function testMethodInTransactionWithReadConcernOption($method)
658
653
$ session ->startTransaction ();
659
654
660
655
try {
661
- $ method ->call (
662
- $ this , $ this ->collection , $ session ,
663
- [
664
- 'readConcern ' => new ReadConcern (ReadConcern::LOCAL ),
665
- ]
666
- );
656
+ call_user_func ($ method , $ this ->collection , $ session , ['readConcern ' => new ReadConcern (ReadConcern::LOCAL )]);
667
657
} finally {
668
658
$ session ->endSession ();
669
659
}
0 commit comments