File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -12,19 +12,19 @@ require_once __DIR__ . "/../utils/basic.inc";
12
12
$ manager = new MongoDB \Driver \Manager (URI );
13
13
$ session = $ manager ->startSession ();
14
14
15
- var_dump ($ session ->getLogicalSessionId ());
15
+ $ lsid = $ session ->getLogicalSessionId ();
16
+
17
+ /* Note: we avoid dumping the Binary object as it may contain bytes that
18
+ * intefere with the test suite's ability to compare expected output. */
19
+ var_dump ($ lsid instanceof stdClass);
20
+ var_dump ($ lsid ->id instanceof MongoDB \BSON \Binary);
21
+ var_dump ($ lsid ->id ->getType () === MongoDB \BSON \Binary::TYPE_UUID );
16
22
17
23
?>
18
24
===DONE===
19
25
<?php exit (0 ); ?>
20
26
--EXPECTF--
21
- object(stdClass)#%d (%d) {
22
- ["id"]=>
23
- object(MongoDB\BSON\Binary)#%d (%d) {
24
- ["data"]=>
25
- string(16) "%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c%c"
26
- ["type"]=>
27
- int(4)
28
- }
29
- }
27
+ bool(true)
28
+ bool(true)
29
+ bool(true)
30
30
===DONE===
You can’t perform that action at this time.
0 commit comments