summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID/StoreTest.php
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-09-08 22:56:12 +0000
committerJosh Hoyt <josh@janrain.com>2006-09-08 22:56:12 +0000
commit9371604f7b7e4a1691afc90a4f3ba9e83777d2af (patch)
tree0c5c813bc69deec509045ca42c9bf8449987adc9 /Tests/Auth/OpenID/StoreTest.php
parent9588223f3465c362171cdcab5101feca2a3b0412 (diff)
downloadphp-openid-9371604f7b7e4a1691afc90a4f3ba9e83777d2af.zip
php-openid-9371604f7b7e4a1691afc90a4f3ba9e83777d2af.tar.gz
php-openid-9371604f7b7e4a1691afc90a4f3ba9e83777d2af.tar.bz2
[project @ Make MySQL and PostGreSQL store tests work; make NO_MATH_SUPPORT work]
Diffstat (limited to 'Tests/Auth/OpenID/StoreTest.php')
-rw-r--r--Tests/Auth/OpenID/StoreTest.php11
1 files changed, 6 insertions, 5 deletions
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index 57f5be7..e27b726 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -308,15 +308,13 @@ explicitly');
// Random nonce (not in store)
$nonce1 = Auth_OpenID_mkNonce();
- // A nonce is not allowed by default
+ // A nonce is not by default
$this->_checkUseNonce($store, $nonce1, true, $url, 1);
- // Storing once causes useNonce to return true the first,
- // and only the first, time it is called after the
- // $store->
+ // Once stored, cannot be stored again
$this->_checkUseNonce($store, $nonce1, false, $url, 2);
- // Storing twice has the same effect as storing once.
+ // And using again has the same effect
$this->_checkUseNonce($store, $nonce1, false, $url, 3);
}
@@ -366,6 +364,7 @@ explicitly');
// because we can't run the test.
if (!(extension_loaded('pgsql') ||
@dl('pgsql.' . PHP_SHLIB_SUFFIX))) {
+ print "Warning: not testing PostGreSQL store";
$this->pass();
return;
}
@@ -475,6 +474,7 @@ explicitly');
// because we can't run the test.
if (!(extension_loaded('sqlite') ||
@dl('sqlite.' . PHP_SHLIB_SUFFIX))) {
+ print "Warning: not testing SQLite store";
$this->pass();
return;
}
@@ -517,6 +517,7 @@ explicitly');
// because we can't run the test.
if (!(extension_loaded('mysql') ||
@dl('mysql.' . PHP_SHLIB_SUFFIX))) {
+ print "Warning: not testing MySQL store";
$this->pass();
return;
}