Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-8.0
/
share
/
test
/
mongodb
/
tests
/
readConcern
/
//opt/php-8.0/share/test/mongodb/tests/readConcern/readconcern-bsonserialize-002.phpt
--TEST-- MongoDB\Driver\ReadConcern::bsonSerialize() returns an object --FILE-- <?php require_once __DIR__ . '/../utils/basic.inc'; $tests = [ new MongoDB\Driver\ReadConcern(), new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LINEARIZABLE), new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL), new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::MAJORITY), new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::AVAILABLE), ]; foreach ($tests as $test) { var_dump($test->bsonSerialize()); } ?> ===DONE=== <?php exit(0); ?> --EXPECTF-- object(stdClass)#%d (%d) { } object(stdClass)#%d (%d) { ["level"]=> string(12) "linearizable" } object(stdClass)#%d (%d) { ["level"]=> string(5) "local" } object(stdClass)#%d (%d) { ["level"]=> string(8) "majority" } object(stdClass)#%d (%d) { ["level"]=> string(9) "available" } ===DONE===