--TEST-- MongoDB\Driver\Session::getLogicalSessionId() --SKIPIF-- --FILE-- startSession(); $lsid = $session->getLogicalSessionId(); /* Note: we avoid dumping the Binary object as it may contain bytes that * intefere with the test suite's ability to compare expected output. */ var_dump($lsid instanceof stdClass); var_dump($lsid->id instanceof MongoDB\BSON\Binary); var_dump($lsid->id->getType() === MongoDB\BSON\Binary::TYPE_UUID); ?> ===DONE=== --EXPECTF-- bool(true) bool(true) bool(true) ===DONE===