Commit f46d9d34 authored by Jeremy Mikola's avatar Jeremy Mikola

PHPLIB-368: Use PHP 5.6+ compatible syntax

parent d38c095f
......@@ -608,7 +608,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
(new CommandObserver)->observe(
function() use ($method, $collection, $session) {
$method->call($this, $collection, $session);
call_user_func($method, $collection, $session);
},
function(array $event) {
$this->assertObjectNotHasAttribute('writeConcern', $event['started']->getCommand());
......@@ -632,12 +632,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$session->startTransaction();
try {
$method->call(
$this, $this->collection, $session,
[
'writeConcern' => new WriteConcern(1),
]
);
call_user_func($method, $this->collection, $session, ['writeConcern' => new WriteConcern(1)]);
} finally {
$session->endSession();
}
......@@ -658,12 +653,7 @@ class CollectionFunctionalTest extends FunctionalTestCase
$session->startTransaction();
try {
$method->call(
$this, $this->collection, $session,
[
'readConcern' => new ReadConcern(ReadConcern::LOCAL),
]
);
call_user_func($method, $this->collection, $session, ['readConcern' => new ReadConcern(ReadConcern::LOCAL)]);
} finally {
$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