--TEST-- ConnectionTimeoutException: exceeding sockettimeoutms --SKIPIF-- --FILE-- 1, 'secs' => 1, 'w' => false, ]); echo throws(function() use ($manager, $command) { $manager->executeCommand('admin', $command); }, 'MongoDB\Driver\Exception\\ConnectionTimeoutException'), "\n"; ?> ===DONE=== --EXPECTF-- OK: Got MongoDB\Driver\Exception\ConnectionTimeoutException Failed to send "sleep" command with database "admin": %Ssocket error or timeout ===DONE===