--TEST-- MongoDB\Driver\Monitoring\TopologyOpeningEvent --SKIPIF-- --FILE-- getTopologyId() instanceof MongoDB\BSON\ObjectId) ? 'yes' : 'no'); var_dump($event); } } $m = create_test_manager(); $m->addSubscriber(new MySubscriber); $command = new MongoDB\Driver\Command(['ping' => 1]); $m->executeCommand(DATABASE_NAME, $command); ?> ===DONE=== --EXPECTF-- getTopologyId() returns an ObjectId: yes object(MongoDB\Driver\Monitoring\TopologyOpeningEvent)#%d (%d) { ["topologyId"]=> object(MongoDB\BSON\ObjectId)#%d (%d) { ["oid"]=> string(24) "%x" } } ===DONE===