--TEST-- MongoDB\Driver\Monitoring\CommandStartedEvent debug output --SKIPIF-- --FILE-- addSubscriber(new MySubscriber); $manager->executeCommand(DATABASE_NAME, new MongoDB\Driver\Command(['ping' => 1])); ?> ===DONE=== --EXPECTF-- object(MongoDB\Driver\Monitoring\CommandStartedEvent)#%d (%d) { ["command"]=> object(stdClass)#%d (%d) {%A } ["commandName"]=> string(4) "ping" ["databaseName"]=> string(%d) "%s" ["operationId"]=> string(%d) "%d" ["requestId"]=> string(%d) "%d" ["server"]=> object(MongoDB\Driver\Server)#%d (%d) {%A } ["serviceId"]=> %r(NULL|object\(MongoDB\\BSON\\ObjectId\).*)%r ["serverConnectionId"]=> %r(NULL|int\(\d+\))%r } ===DONE===