--TEST-- MongoDB\Driver\Manager::__construct(): disableClientPersistence option --FILE-- false]); // Will reuse the previous client due to same options new MongoDB\Driver\Manager(null, [], ['disableClientPersistence' => false]); // Will create a non-persistent client new MongoDB\Driver\Manager(null, [], ['disableClientPersistence' => true]); // Will create another non-persistent client new MongoDB\Driver\Manager(null, [], ['disableClientPersistence' => true]); ini_set('mongodb.debug', ''); ?> ===DONE=== --EXPECTF-- %A [%s] PHONGO: DEBUG > Created client with hash: %s [%s] PHONGO: DEBUG > Stored persistent client with hash: %s [%s] PHONGO: DEBUG > Not destroying persistent client for Manager%A [%s] PHONGO: DEBUG > Created client with hash: %s [%s] PHONGO: DEBUG > Stored persistent client with hash: %s [%s] PHONGO: DEBUG > Not destroying persistent client for Manager%A [%s] PHONGO: DEBUG > Found client for hash: %s [%s] PHONGO: DEBUG > Not destroying persistent client for Manager%A [%s] PHONGO: DEBUG > Created client with hash: %s [%s] PHONGO: DEBUG > Stored non-persistent client [%s] PHONGO: DEBUG > Destroying non-persistent client for Manager%A [%s] PHONGO: DEBUG > Created client with hash: %s [%s] PHONGO: DEBUG > Stored non-persistent client [%s] PHONGO: DEBUG > Destroying non-persistent client for Manager%A ===DONE===