Viewing File: /opt/alt/tests/alt-php82-pecl-mongodb_1.18.1-1.el8/tests/writeconcern-getjournal-001.phpt
--TEST--
MongoDB\Driver\WriteConcern::getJournal()
--FILE--
<?php
$tests = array(
true,
false,
1,
0,
null,
);
foreach ($tests as $test) {
$wc = new MongoDB\Driver\WriteConcern(1, 0, $test);
var_dump($wc->getJournal());
}
// Test with default value
$wc = new MongoDB\Driver\WriteConcern(1, 0);
var_dump($wc->getJournal());
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
bool(true)
bool(false)
bool(true)
bool(false)
NULL
NULL
===DONE===
Back to Directory
File Manager
<