diff options
author | tailor <cygnus@janrain.com> | 2006-09-21 18:29:05 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2006-09-21 18:29:05 +0000 |
commit | 45da94292394f31c524d41aca4bacf72c7006d73 (patch) | |
tree | 0798c52524d49b0d774bdbb4a9312571d28cf5a1 /Tests/Auth | |
parent | 60471ae2b4e4747b71e1e257ebc4d7c1ab50a0f0 (diff) | |
download | php-openid-45da94292394f31c524d41aca4bacf72c7006d73.zip php-openid-45da94292394f31c524d41aca4bacf72c7006d73.tar.gz php-openid-45da94292394f31c524d41aca4bacf72c7006d73.tar.bz2 |
[project @ FIX: Fix manager and OpenID service endpoint serialization to avoid problems with incomplete objects]
Diffstat (limited to 'Tests/Auth')
-rw-r--r-- | Tests/Auth/OpenID/Consumer.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/Tests/Auth/OpenID/Consumer.php b/Tests/Auth/OpenID/Consumer.php index 5ab6fea..f333acd 100644 --- a/Tests/Auth/OpenID/Consumer.php +++ b/Tests/Auth/OpenID/Consumer.php @@ -1003,14 +1003,18 @@ class Tests_Auth_OpenID_ConsumerTest2 extends PHPUnit_TestCase { $this->assertTrue(strtolower(get_class($result)) == 'auth_openid_authrequest'); + $loader = new Auth_OpenID_ServiceEndpointLoader(); + // Side-effect of calling beginWithoutDiscovery is setting the // session value to the endpoint attribute of the result - $this->assertTrue($this->session->get($this->consumer->_token_key) === - $result->endpoint); + $this->assertTrue( + $loader->fromSession( + $this->session->get($this->consumer->_token_key)) == + $result->endpoint); // The endpoint that we passed in is the endpoint on the // auth_request - $this->assertTrue($result->endpoint === $this->endpoint); + $this->assertTrue($result->endpoint == $this->endpoint); } function test_completeEmptySession() |