--TEST-- MongoDB\Driver\Manager::executeReadCommand() read concern inheritance --SKIPIF-- --FILE-- 'local']); $command = new MongoDB\Driver\Command([ 'aggregate' => COLLECTION_NAME, 'pipeline' => [['$group' => ['_id' => 1]]], 'cursor' => (object) [], ]); (new CommandObserver)->observe( function() use ($manager, $command) { $manager->executeReadCommand(DATABASE_NAME, $command); $manager->executeReadCommand(DATABASE_NAME, $command, [ 'readConcern' => new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::AVAILABLE), ]); }, function(stdClass $command) { echo json_encode($command->readConcern), "\n"; } ); ?> ===DONE=== --EXPECT-- {"level":"local"} {"level":"available"} ===DONE===