summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Auth/OpenID/Message.php2
-rw-r--r--Tests/Auth/OpenID/AuthRequest.php6
-rw-r--r--Tests/Auth/OpenID/Message.php2
3 files changed, 5 insertions, 5 deletions
diff --git a/Auth/OpenID/Message.php b/Auth/OpenID/Message.php
index 53a3602..4d1b119 100644
--- a/Auth/OpenID/Message.php
+++ b/Auth/OpenID/Message.php
@@ -360,7 +360,7 @@ class Auth_OpenID_NamespaceMap {
// Fall back to generating a numerical alias
$i = 0;
while (1) {
- $alias = strval($i);
+ $alias = 'ext' . strval($i);
if ($this->addAlias($namespace_uri, $alias) === null) {
$i += 1;
} else {
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();