mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-25 09:28:18 +02:00
28 lines
474 B
PHP
28 lines
474 B
PHP
--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::LOCAL),
|
|
];
|
|
|
|
foreach ($tests as $test) {
|
|
var_dump($test->bsonSerialize());
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
object(stdClass)#%d (%d) {
|
|
}
|
|
object(stdClass)#%d (%d) {
|
|
["level"]=>
|
|
string(5) "local"
|
|
}
|
|
===DONE===
|