Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632622
writeconcern-ctor-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
1 KB
Referenced Files
None
Subscribers
None
writeconcern-ctor-001.phpt
View Options
--TEST--
MongoDB\Driver\WriteConcern construction
--FILE--
<?php
var_dump(new MongoDB\Driver\WriteConcern(MongoDB\Driver\WriteConcern::MAJORITY));
var_dump(new MongoDB\Driver\WriteConcern(MongoDB\Driver\WriteConcern::MAJORITY, 1000));
var_dump(new MongoDB\Driver\WriteConcern(2));
var_dump(new MongoDB\Driver\WriteConcern(2, 2000));
var_dump(new MongoDB\Driver\WriteConcern("tagname"));
var_dump(new MongoDB\Driver\WriteConcern("string", 3000));
var_dump(new MongoDB\Driver\WriteConcern("string", 4000, true));
var_dump(new MongoDB\Driver\WriteConcern("string", 5000, false));
var_dump(new MongoDB\Driver\WriteConcern("string", 6000, null));
?>
===DONE===
<?php exit(0); ?>
--EXPECTF--
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(8) "majority"
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(8) "majority"
["wtimeout"]=>
int(1000)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
int(2)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
int(2)
["wtimeout"]=>
int(2000)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(7) "tagname"
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(6) "string"
["wtimeout"]=>
int(3000)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(6) "string"
["j"]=>
bool(true)
["wtimeout"]=>
int(4000)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(6) "string"
["j"]=>
bool(false)
["wtimeout"]=>
int(5000)
}
object(MongoDB\Driver\WriteConcern)#%d (%d) {
["w"]=>
string(6) "string"
["wtimeout"]=>
int(6000)
}
===DONE===
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 15, 2:48 PM (1 d, 20 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
152409
Default Alt Text
writeconcern-ctor-001.phpt (1 KB)
Attached To
Mode
R114 php-mongodb
Attached
Detach File
Event Timeline