summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID/StoreTest.php
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-09-19 21:02:44 +0000
committerJosh Hoyt <josh@janrain.com>2006-09-19 21:02:44 +0000
commitd248528fa62f77b57464e29ed39b0c67839b4f66 (patch)
treeefe18b3befe77fc30d6250f41b47d40f8a30e389 /Tests/Auth/OpenID/StoreTest.php
parenta9d7553f26152c912f3ff94061fbb443eb8edef8 (diff)
downloadphp-openid-d248528fa62f77b57464e29ed39b0c67839b4f66.zip
php-openid-d248528fa62f77b57464e29ed39b0c67839b4f66.tar.gz
php-openid-d248528fa62f77b57464e29ed39b0c67839b4f66.tar.bz2
[project @ Clean up temporary files created by the sqlite store test]
Diffstat (limited to 'Tests/Auth/OpenID/StoreTest.php')
-rw-r--r--Tests/Auth/OpenID/StoreTest.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index e5f9ac6..71e35f4 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -456,13 +456,14 @@ explicitly');
if (PEAR::isError($db)) {
$this->fail("SQLite database connection failed: " .
$db->getMessage());
- return;
+ } else {
+ $store =& new Auth_OpenID_SQLiteStore($db);
+ $this->assertTrue($store->createTables(), "Table creation failed");
+ $this->_testStore($store);
+ $this->_testNonce($store);
}
-
- $store =& new Auth_OpenID_SQLiteStore($db);
- $this->assertTrue($store->createTables(), "Table creation failed");
- $this->_testStore($store);
- $this->_testNonce($store);
+ unlink($temp_dir . '/file.db');
+ rmdir($temp_dir);
}
function test_mysqlstore()