summaryrefslogtreecommitdiffstats
path: root/Tests/Auth/OpenID
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-04-03 21:02:00 +0000
committertailor <cygnus@janrain.com>2007-04-03 21:02:00 +0000
commitbf815d3dfb557e25394a0339db75a6f8bf6d6a5c (patch)
treeec47c02bf6ee8f60db08b542c175d4b9adbbfcc3 /Tests/Auth/OpenID
parentbe356a66406b333418cbd0f9ddff74fd08ea8b06 (diff)
downloadphp-openid-bf815d3dfb557e25394a0339db75a6f8bf6d6a5c.zip
php-openid-bf815d3dfb557e25394a0339db75a6f8bf6d6a5c.tar.gz
php-openid-bf815d3dfb557e25394a0339db75a6f8bf6d6a5c.tar.bz2
[project @ Improve format of auto-generated namespace aliases]
Diffstat (limited to 'Tests/Auth/OpenID')
-rw-r--r--Tests/Auth/OpenID/AuthRequest.php6
-rw-r--r--Tests/Auth/OpenID/Message.php2
2 files changed, 4 insertions, 4 deletions
diff --git a/Tests/Auth/OpenID/AuthRequest.php b/Tests/Auth/OpenID/AuthRequest.php
index 3f67bbc..14c4f59 100644
--- a/Tests/Auth/OpenID/AuthRequest.php
+++ b/Tests/Auth/OpenID/AuthRequest.php
@@ -114,9 +114,9 @@ class TestAuthRequestMixin extends OpenIDTestMixin {
// namespaces. Really it doesn't care that it has alias "0",
// but that is tested anyway
$post_args = $msg->toPostArgs();
- $this->assertEquals('bag:', $post_args['openid.ns.0']);
- $this->assertEquals('brown', $post_args['openid.0.color']);
- $this->assertEquals('paper', $post_args['openid.0.material']);
+ $this->assertEquals('bag:', $post_args['openid.ns.ext0']);
+ $this->assertEquals('brown', $post_args['openid.ext0.color']);
+ $this->assertEquals('paper', $post_args['openid.ext0.material']);
}
function test_standard()
diff --git a/Tests/Auth/OpenID/Message.php b/Tests/Auth/OpenID/Message.php
index cd26c52..633955c 100644
--- a/Tests/Auth/OpenID/Message.php
+++ b/Tests/Auth/OpenID/Message.php
@@ -1064,7 +1064,7 @@ class Tests_Auth_OpenID_NamespaceMap extends PHPUnit_TestCase {
foreach ($nsm->iteritems() as $pair) {
list($uri, $alias) = $pair;
- $this->assertTrue(substr($uri, 22) == $alias);
+ $this->assertTrue('ext'.substr($uri, 22) == $alias);
}
$it = $nsm->iterAliases();