Commit e651f9ae authored by Jeremy Mikola's avatar Jeremy Mikola

Merge pull request #640

parents d38c095f f46d9d34
...@@ -608,7 +608,7 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -608,7 +608,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
(new CommandObserver)->observe( (new CommandObserver)->observe(
function() use ($method, $collection, $session) { function() use ($method, $collection, $session) {
$method->call($this, $collection, $session); call_user_func($method, $collection, $session);
}, },
function(array $event) { function(array $event) {
$this->assertObjectNotHasAttribute('writeConcern', $event['started']->getCommand()); $this->assertObjectNotHasAttribute('writeConcern', $event['started']->getCommand());
...@@ -632,12 +632,7 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -632,12 +632,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$session->startTransaction(); $session->startTransaction();
try { try {
$method->call( call_user_func($method, $this->collection, $session, ['writeConcern' => new WriteConcern(1)]);
$this, $this->collection, $session,
[
'writeConcern' => new WriteConcern(1),
]
);
} finally { } finally {
$session->endSession(); $session->endSession();
} }
...@@ -658,12 +653,7 @@ class CollectionFunctionalTest extends FunctionalTestCase ...@@ -658,12 +653,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$session->startTransaction(); $session->startTransaction();
try { try {
$method->call( call_user_func($method, $this->collection, $session, ['readConcern' => new ReadConcern(ReadConcern::LOCAL)]);
$this, $this->collection, $session,
[
'readConcern' => new ReadConcern(ReadConcern::LOCAL),
]
);
} finally { } finally {
$session->endSession(); $session->endSession();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment