diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-25 01:04:30 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-25 01:04:30 +0000 |
commit | c5fa0d80d3f5a83b4203fcb71f37c3bb35ca960d (patch) | |
tree | fbd487501000301e5258d40b807a0ab1b18fadb2 /Tests/Auth/OpenID | |
parent | 36ad60dc1b2308357fd63027bdc7fb1a46ba3c7a (diff) | |
download | php-openid-c5fa0d80d3f5a83b4203fcb71f37c3bb35ca960d.zip php-openid-c5fa0d80d3f5a83b4203fcb71f37c3bb35ca960d.tar.gz php-openid-c5fa0d80d3f5a83b4203fcb71f37c3bb35ca960d.tar.bz2 |
[project @ Add getBadArgs server test]
Diffstat (limited to 'Tests/Auth/OpenID')
-rw-r--r-- | Tests/Auth/OpenID/Server.php | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php index 1f19fa5..4236e18 100644 --- a/Tests/Auth/OpenID/Server.php +++ b/Tests/Auth/OpenID/Server.php @@ -51,4 +51,18 @@ class Tests_Auth_OpenID_Server extends PHPUnit_TestCase { $this->fail($msg); } } + + function test_getBadArgs() + { + $args = array( + 'openid.mode' => 'zebradance', + 'openid.identity' => $this->id_url, + ); + + list($status, $info) = $this->server->getOpenIDResponse( + '_Auth_OpenID_NotAuthorized', 'GET', $args); + + $this->assertEquals($status, Auth_OpenID_LOCAL_ERROR); + $this->assertTrue($info); + } } |