mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-23 16:38:08 +02:00
25 lines
372 B
PHP
25 lines
372 B
PHP
--TEST--
|
|
MongoDB\Driver\ReadConcern::getLevel()
|
|
--FILE--
|
|
<?php
|
|
|
|
$tests = [
|
|
null,
|
|
MongoDB\Driver\ReadConcern::LOCAL,
|
|
'not-yet-supported',
|
|
];
|
|
|
|
foreach ($tests as $test) {
|
|
$rc = new MongoDB\Driver\ReadConcern($test);
|
|
var_dump($rc->getLevel());
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
NULL
|
|
string(5) "local"
|
|
string(17) "not-yet-supported"
|
|
===DONE===
|