summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-01-15 20:24:59 +0000
committertailor <cygnus@janrain.com>2007-01-15 20:24:59 +0000
commit899f8c2562b3528c94efb6e602c043ab5a0fb667 (patch)
treea62cd3cb0d6ae6402f19b5f52e49d2bbb4435e11 /Tests
parent03634c658cb7451a8d14935e70a8fdeec8c0364c (diff)
downloadphp-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.zip
php-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.tar.gz
php-openid-899f8c2562b3528c94efb6e602c043ab5a0fb667.tar.bz2
[project @ Fix no-math-support in consumer]
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Auth/OpenID/Consumer.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php
index e6918b1..15a3537 100644
--- a/Tests/Auth/OpenID/Consumer.php
+++ b/Tests/Auth/OpenID/Consumer.php
@@ -30,10 +30,12 @@ class Auth_OpenID_TestConsumer extends Auth_OpenID_GenericConsumer {
/**
* Use a small (insecure) modulus for this test so that it runs quickly
*/
+ /*
function _createDiffieHellman()
{
return new Auth_OpenID_DiffieHellman('1235514290909');
}
+ */
}
$_Auth_OpenID_assocs = array(
@@ -68,7 +70,8 @@ function Auth_OpenID_associate($qs, $assoc_secret, $assoc_handle)
if (defined('Auth_OpenID_NO_MATH_SUPPORT')) {
assert(count($query_data) == 2);
- $session = Auth_OpenID_PlainTextServerSession::fromQuery($query_data);
+ $message = Auth_OpenID_Message::fromPostArgs($query_data);
+ $session = Auth_OpenID_PlainTextServerSession::fromMessage($message);
} else {
assert((count($query_data) == 6) || (count($query_data) == 4));
assert($query_data['openid.mode'] == 'associate');