mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-24 17:08:03 +02:00
28 lines
622 B
PHP
28 lines
622 B
PHP
--TEST--
|
|
MongoDB\Driver\ReadConcern construction
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(new MongoDB\Driver\ReadConcern());
|
|
var_dump(new MongoDB\Driver\ReadConcern(null));
|
|
var_dump(new MongoDB\Driver\ReadConcern(MongoDB\Driver\ReadConcern::LOCAL));
|
|
var_dump(new MongoDB\Driver\ReadConcern('not-yet-supported'));
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
object(MongoDB\Driver\ReadConcern)#%d (%d) {
|
|
}
|
|
object(MongoDB\Driver\ReadConcern)#%d (%d) {
|
|
}
|
|
object(MongoDB\Driver\ReadConcern)#%d (%d) {
|
|
["level"]=>
|
|
string(5) "local"
|
|
}
|
|
object(MongoDB\Driver\ReadConcern)#%d (%d) {
|
|
["level"]=>
|
|
string(17) "not-yet-supported"
|
|
}
|
|
===DONE===
|