summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-01-25 20:12:52 +0000
committerJosh Hoyt <josh@janrain.com>2006-01-25 20:12:52 +0000
commit3c3db7f4a6b93aa468908abe21db19223fd41f52 (patch)
tree72f6824904dfd56d68de5b5319371da0b1c4c87e
parent190257a4b5b8e7508b7b4fe69b5c548b327b6d6b (diff)
downloadphp-openid-3c3db7f4a6b93aa468908abe21db19223fd41f52.zip
php-openid-3c3db7f4a6b93aa468908abe21db19223fd41f52.tar.gz
php-openid-3c3db7f4a6b93aa468908abe21db19223fd41f52.tar.bz2
[project @ Add checkAuthentication failure on a bad handle]
-rw-r--r--Tests/Auth/OpenID/Server.php9
1 files changed, 9 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php
index 04342b8..d2080c8 100644
--- a/Tests/Auth/OpenID/Server.php
+++ b/Tests/Auth/OpenID/Server.php
@@ -280,4 +280,13 @@ class Tests_Auth_OpenID_Server extends PHPUnit_TestCase {
$this->assertEquals(Auth_OpenID_REMOTE_OK, $status);
$this->assertEquals("is_valid:false\n", $info);
}
+
+ function test_checkAuthenticationFailHandle()
+ {
+ $args = $this->_setupCheckAuth();
+ $args['openid.assoc_handle'] = 'a bad handle';
+ list($status, $info) = $this->server->checkAuthentication($args);
+ $this->assertEquals(Auth_OpenID_REMOTE_OK, $status);
+ $this->assertEquals("is_valid:false\n", $info);
+ }
}