protected function cleanupMongoDB()
    {
        try {
            $this->dbh->drop();
        } catch (\MongoDB\Driver\Exception $e) {
            throw new \Exception(sprintf('Failed to drop the DB: %s', $e->getMessage()));
        }
    }
protected function cleanupMongoDB()
    {
        try {
            $this->dbh->drop();
        } catch (\MongoDB\Driver\Exception $e) {
            throw new \Exception(sprintf('Failed to drop the DB: %s', $e->getMessage()));
        }
    }
protected function cleanupMongoDB ( ) { try { $ this -> dbh -> drop ( ) ; } catch ( \ MongoDB \ Driver \ Exception $ e ) { throw new \ Exception ( sprintf ( 'Failed to drop the DB: %s' , $ e -> getMessage ( ) ) ) ; } }
Clean up the Mongo database using the MongoDB extension.
Clean up the Mongo database using the MongoDB extension .