Linux SRV-16 6.18.44-paas #1 SMP PREEMPT_DYNAMIC Thu Aug 13 10:08:12 UTC 2026 x86_64
/
opt
/
php-7.4
/
share
/
test
/
mongodb
/
tests
/
writeConcern
/
//opt/php-7.4/share/test/mongodb/tests/writeConcern/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===