diff options
author | tailor <cygnus@janrain.com> | 2006-04-19 22:49:36 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-04-19 22:49:36 +0000 |
commit | 64e786af63e74a3aa3b22d9ee2ac122e1db3a2e6 (patch) | |
tree | 95f770ab66c4a04596e49a45c58fdaf26a0fb624 | |
parent | bc4ddc20f020b1d79aa57ba8326be646203b985f (diff) | |
download | php-openid-64e786af63e74a3aa3b22d9ee2ac122e1db3a2e6.zip php-openid-64e786af63e74a3aa3b22d9ee2ac122e1db3a2e6.tar.gz php-openid-64e786af63e74a3aa3b22d9ee2ac122e1db3a2e6.tar.bz2 |
[project @ Removed more DH tests from server lineup when no bigmath found]
-rw-r--r-- | Tests/Auth/OpenID/Server.php | 24 |
1 files changed, 13 insertions, 11 deletions
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php index 80e6b4c..09e4c15 100644 --- a/Tests/Auth/OpenID/Server.php +++ b/Tests/Auth/OpenID/Server.php @@ -230,17 +230,19 @@ class Tests_Auth_OpenID_Test_Decode extends PHPUnit_TestCase { function test_associateDH() { - $args = array( - 'openid.mode' => 'associate', - 'openid.session_type' => 'DH-SHA1', - 'openid.dh_consumer_public' => "Rzup9265tw=="); - - $r = $this->decoder->decode($args); - $this->assertTrue(is_a($r, 'Auth_OpenID_AssociateRequest')); - $this->assertEquals($r->mode, "associate"); - $this->assertEquals($r->session_type, "DH-SHA1"); - $this->assertEquals($r->assoc_type, "HMAC-SHA1"); - $this->assertTrue($r->pubkey); + if (!defined('Auth_OpenID_NO_MATH_SUPPORT')) { + $args = array( + 'openid.mode' => 'associate', + 'openid.session_type' => 'DH-SHA1', + 'openid.dh_consumer_public' => "Rzup9265tw=="); + + $r = $this->decoder->decode($args); + $this->assertTrue(is_a($r, 'Auth_OpenID_AssociateRequest')); + $this->assertEquals($r->mode, "associate"); + $this->assertEquals($r->session_type, "DH-SHA1"); + $this->assertEquals($r->assoc_type, "HMAC-SHA1"); + $this->assertTrue($r->pubkey); + } } function test_associateDHMissingKey() |