mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-25 17:32:28 +01:00
28 lines
395 B
PHP
28 lines
395 B
PHP
--TEST--
|
|
MongoDB\Driver\WriteConcern::getWtimeout()
|
|
--FILE--
|
|
<?php
|
|
|
|
$tests = array(
|
|
0,
|
|
1,
|
|
);
|
|
|
|
foreach ($tests as $test) {
|
|
$wc = new MongoDB\Driver\WriteConcern(1, $test);
|
|
var_dump($wc->getWtimeout());
|
|
}
|
|
|
|
// Test with default value
|
|
$wc = new MongoDB\Driver\WriteConcern(1);
|
|
var_dump($wc->getWtimeout());
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECT--
|
|
int(0)
|
|
int(1)
|
|
int(0)
|
|
===DONE===
|