laravel/framework — pull request #2277 by bexarcreative-daniel (2013-09-13 18:42:04+00:00)
Title: #2276 Added `disconnect()` method to DatabaseManager.

This method helps with unit testing where multiple connections are opened during a single PHPUnit process. Calling `DB::disconnect($name)` provides access to the protected `$connections` variable in a similar manner to `DB::reconnect($name)` but without recreating the connection. This prevents PDO Max Connection errors during database-heavy unit testing.