summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2006-02-02 23:42:25 +0000
committertailor <cygnus@janrain.com>2006-02-02 23:42:25 +0000
commitcbc52af94273c79d8d6bde58f3acf314447c14b7 (patch)
treef9af9200586e2a496c6f5eac16b8675135e6ba29
parentcf12e8c205166ffb29a89e7555358b30278541a5 (diff)
downloadphp-openid-cbc52af94273c79d8d6bde58f3acf314447c14b7.zip
php-openid-cbc52af94273c79d8d6bde58f3acf314447c14b7.tar.gz
php-openid-cbc52af94273c79d8d6bde58f3acf314447c14b7.tar.bz2
[project @ Cleaned up db disconnects in PgSQL store test.]
-rw-r--r--Tests/Auth/OpenID/StoreTest.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index bf20828..e0daf19 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -369,6 +369,9 @@ explicitly');
return;
}
+ $template_db->disconnect();
+ unset($template_db);
+
// Disconnect from template1 and reconnect to the temporary
// testing database.
$dsn['database'] = $temp_db_name;
@@ -386,6 +389,7 @@ explicitly');
$this->_testNonce($store);
$db->disconnect();
+ unset($db);
// Connect to template1 again so we can drop the temporary
// database.
@@ -407,6 +411,8 @@ explicitly');
$result->getMessage());
return;
}
+
+ $template_db->disconnect();
}
function test_sqlitestore()