Skip to content

Commit e651f9a

Browse files
committed
Merge pull request #640
2 parents d38c095 + f46d9d3 commit e651f9a

File tree

1 file changed

+3
-13
lines changed

1 file changed

+3
-13
lines changed

tests/Collection/CollectionFunctionalTest.php

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -608,7 +608,7 @@ public function testMethodDoesNotInheritReadWriteConcernInTranasaction(\Closure
608608

609609
(new CommandObserver)->observe(
610610
function() use ($method, $collection, $session) {
611-
$method->call($this, $collection, $session);
611+
call_user_func($method, $collection, $session);
612612
},
613613
function(array $event) {
614614
$this->assertObjectNotHasAttribute('writeConcern', $event['started']->getCommand());
@@ -632,12 +632,7 @@ public function testMethodInTransactionWithWriteConcernOption($method)
632632
$session->startTransaction();
633633

634634
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)]);
641636
} finally {
642637
$session->endSession();
643638
}
@@ -658,12 +653,7 @@ public function testMethodInTransactionWithReadConcernOption($method)
658653
$session->startTransaction();
659654

660655
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)]);
667657
} finally {
668658
$session->endSession();
669659
}

0 commit comments

Comments
 (0)