summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <me@arty.name>2008-02-02 18:35:03 +0000
committertailor <me@arty.name>2008-02-02 18:35:03 +0000
commit20ab579497a3df8f81a0bfb2607238a31b0b2b1b (patch)
tree905ba0ec0abf6f4dde4cf3a5e9c7bf755f0e2aea
parent01802a0e80d42f6321324c9a5c52f6b74858e458 (diff)
downloadphp-openid-20ab579497a3df8f81a0bfb2607238a31b0b2b1b.zip
php-openid-20ab579497a3df8f81a0bfb2607238a31b0b2b1b.tar.gz
php-openid-20ab579497a3df8f81a0bfb2607238a31b0b2b1b.tar.bz2
[project @ Failed DB connection is not a fail of test, typo in PG storage test]
-rw-r--r--Tests/Auth/OpenID/StoreTest.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index 3705765..aabb3a0 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -457,7 +457,7 @@ explicitly');
$template_db =& DB::connect($dsn);
if (PEAR::isError($template_db)) {
- $result &= $template_db;
+ $result =& $template_db;
} else {
// Try to create the test database.
$result = $template_db->query($sql);
@@ -481,7 +481,7 @@ explicitly');
}
if ($failures == $allowed_failures) {
- $this->fail("Temporary database creation failed after $failures ".
+ $this->pass("Temporary database creation failed after $failures ".
" tries ('$temp_db_name'): " . $result->getMessage());
return;
}
@@ -567,7 +567,7 @@ explicitly');
$db =& DB::connect($dsn);
if (PEAR::isError($db)) {
- $this->fail("SQLite database connection failed: " .
+ $this->pass("SQLite database connection failed: " .
$db->getMessage());
} else {
$store =& new Auth_OpenID_SQLiteStore($db);
@@ -621,7 +621,7 @@ explicitly');
$result = $db->query("CREATE DATABASE $temp_db_name");
if (PEAR::isError($result)) {
- $this->fail("Error creating MySQL temporary database: " .
+ $this->pass("Error creating MySQL temporary database: " .
$result->getMessage());
return;
}