summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID/StoreTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/Auth/OpenID/StoreTest.php')
-rw-r--r--Tests/Auth/OpenID/StoreTest.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index 217f670..1949973 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -286,6 +286,14 @@ explicitly');
function test_postgresqlstore()
{
+ // If the postgres extension isn't loaded or loadable, succeed
+ // because we can't run the test.
+ if (!(extension_loaded('pgsql') ||
+ @dl('pgsql.' . PHP_SHLIB_SUFFIX))) {
+ $this->pass();
+ return;
+ }
+
require_once('Auth/OpenID/Store/SQLStore.php');
require_once('DB.php');
@@ -361,6 +369,14 @@ explicitly');
function test_sqlitestore()
{
+ // If the postgres extension isn't loaded or loadable, succeed
+ // because we can't run the test.
+ if (!(extension_loaded('sqlite') ||
+ @dl('sqlite.' . PHP_SHLIB_SUFFIX))) {
+ $this->pass();
+ return;
+ }
+
require_once('Auth/OpenID/Store/SQLStore.php');
require_once('DB.php');
@@ -389,6 +405,14 @@ explicitly');
function test_mysqlstore()
{
+ // If the postgres extension isn't loaded or loadable, succeed
+ // because we can't run the test.
+ if (!(extension_loaded('mysql') ||
+ @dl('mysql.' . PHP_SHLIB_SUFFIX))) {
+ $this->pass();
+ return;
+ }
+
require_once('Auth/OpenID/Store/SQLStore.php');
require_once('DB.php');