mirror of
https://github.com/macintoshplus/mongo-php-driver.git
synced 2026-03-31 13:22:16 +02:00
39 lines
842 B
PHP
39 lines
842 B
PHP
--TEST--
|
|
MongoDB\Driver\Session debug output (causalConsistency=false)
|
|
--SKIPIF--
|
|
<?php require __DIR__ . "/../utils/basic-skipif.inc"; ?>
|
|
<?php NEEDS_CRYPTO(); ?>
|
|
<?php NEEDS('STANDALONE'); NEEDS_ATLEAST_MONGODB_VERSION(STANDALONE, "3.6"); ?>
|
|
--FILE--
|
|
<?php
|
|
require_once __DIR__ . "/../utils/basic.inc";
|
|
|
|
$manager = new MongoDB\Driver\Manager(STANDALONE);
|
|
$session = $manager->startSession(['causalConsistency' => false]);
|
|
|
|
var_dump($session);
|
|
|
|
?>
|
|
===DONE===
|
|
<?php exit(0); ?>
|
|
--EXPECTF--
|
|
object(MongoDB\Driver\Session)#%d (%d) {
|
|
["logicalSessionId"]=>
|
|
array(1) {
|
|
["id"]=>
|
|
object(MongoDB\BSON\Binary)#%d (%d) {
|
|
["data"]=>
|
|
string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
|
|
["type"]=>
|
|
int(4)
|
|
}
|
|
}
|
|
["clusterTime"]=>
|
|
NULL
|
|
["causalConsistency"]=>
|
|
bool(false)
|
|
["operationTime"]=>
|
|
NULL
|
|
}
|
|
===DONE===
|