diff options
author | tailor <cygnus@janrain.com> | 2007-04-03 21:02:00 +0000 |
---|---|---|
committer | tailor <cygnus@janrain.com> | 2007-04-03 21:02:00 +0000 |
commit | bf815d3dfb557e25394a0339db75a6f8bf6d6a5c (patch) | |
tree | ec47c02bf6ee8f60db08b542c175d4b9adbbfcc3 /Tests/Auth/OpenID | |
parent | be356a66406b333418cbd0f9ddff74fd08ea8b06 (diff) | |
download | php-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.php | 6 | ||||
-rw-r--r-- | Tests/Auth/OpenID/Message.php | 2 |
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(); |