Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F618461
writeconcern-getwtimeout-001.phpt
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
470 B
Referenced Files
None
Subscribers
None
writeconcern-getwtimeout-001.phpt
View Options
--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());
var_dump($wc->wtimeout);
}
// Test with default value
$wc = new MongoDB\Driver\WriteConcern(1);
var_dump($wc->getWtimeout());
var_dump($wc->wtimeout);
?>
===DONE===
<?php exit(0); ?>
--EXPECT--
int(0)
int(0)
int(1)
int(1)
int(0)
int(0)
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 14, 3:07 PM (1 h, 28 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
139498
Default Alt Text
writeconcern-getwtimeout-001.phpt (470 B)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline