summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-04-05 20:24:39 +0000
committertailor <cygnus@janrain.com>2007-04-05 20:24:39 +0000
commit8043dfb552a2879a6957e0090cb9a75100e895dc (patch)
tree13a0db1ae8f59983a1553b512a0c8299197634bf
parentff06e616d59f4f29e531daed5b504e3cb76decbe (diff)
downloadphp-openid-8043dfb552a2879a6957e0090cb9a75100e895dc.zip
php-openid-8043dfb552a2879a6957e0090cb9a75100e895dc.tar.gz
php-openid-8043dfb552a2879a6957e0090cb9a75100e895dc.tar.bz2
[project @ Fix no-math-support check in consumer test code]
-rw-r--r--Tests/Auth/OpenID/Consumer.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php
index fdb11f7..49913c4 100644
--- a/Tests/Auth/OpenID/Consumer.php
+++ b/Tests/Auth/OpenID/Consumer.php
@@ -45,9 +45,6 @@ function setConsumerSession(&$con)
$con->session_types = array('DH-SHA1' => 'FastConsumerSession');
}
-class Auth_OpenID_TestConsumer extends Auth_OpenID_GenericConsumer {
-}
-
global $_Auth_OpenID_assocs;
$_Auth_OpenID_assocs = array(
array('another 20-byte key.', 'Snarky'),
@@ -189,7 +186,9 @@ class Tests_Auth_OpenID_Consumer extends PHPUnit_TestCase {
global $_Auth_OpenID_consumer_url,
$_Auth_OpenID_server_url;
- setConsumerSession($consumer);
+ if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) {
+ setConsumerSession($consumer);
+ }
$endpoint = new Auth_OpenID_ServiceEndpoint();
$endpoint->claimed_id = $user_url;
@@ -271,10 +270,10 @@ class Tests_Auth_OpenID_Consumer extends PHPUnit_TestCase {
$user_page = sprintf($_Auth_OpenID_user_page_pat, $links);
$fetcher = new Auth_OpenID_TestFetcher($user_url, $user_page,
- $_Auth_OpenID_assocs[0][0],
- $_Auth_OpenID_assocs[0][1]);
+ $_Auth_OpenID_assocs[0][0],
+ $_Auth_OpenID_assocs[0][1]);
- $consumer = new Auth_OpenID_TestConsumer($store);
+ $consumer = new Auth_OpenID_GenericConsumer($store);
$consumer->fetcher =& $fetcher;
$expected_num_assocs = 0;