mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-04-23 16:38:08 +02:00
31 lines
507 B
PHP
31 lines
507 B
PHP
--TEST--
|
|
MongoDB\Driver\WriteConcern::getWtimeout()
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$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===
|