summaryrefslogtreecommitdiffstats
path: root/Tests
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-10-16 20:31:53 +0000
committertailor <cygnus@janrain.com>2007-10-16 20:31:53 +0000
commit4f881d41750bed0df9951a4c12f4c97a8c3833dc (patch)
treee72d569bdf533da9c279913ed7e8ac028ccc8bba /Tests
parent79412ee83d8b68f624208a217b1d2405dae26858 (diff)
downloadphp-openid-4f881d41750bed0df9951a4c12f4c97a8c3833dc.zip
php-openid-4f881d41750bed0df9951a4c12f4c97a8c3833dc.tar.gz
php-openid-4f881d41750bed0df9951a4c12f4c97a8c3833dc.tar.bz2
[project @ r299: Always send count.ALIAS and type.ALIAS]
Diffstat (limited to 'Tests')
-rw-r--r--Tests/Auth/OpenID/AX.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/Tests/Auth/OpenID/AX.php b/Tests/Auth/OpenID/AX.php
index e3c353e..c2990fe 100644
--- a/Tests/Auth/OpenID/AX.php
+++ b/Tests/Auth/OpenID/AX.php
@@ -487,8 +487,13 @@ class FetchResponseTest extends PHPUnit_TestCase {
function test_getExtensionArgs_empty_request_some()
{
+ $uri = 'http://not.found/';
+ $alias = 'ext0';
+
$expected_args = array(
'mode' => 'fetch_response',
+ 'type.' . $alias => $uri,
+ 'count.' . $alias => '0'
);
$req = new Auth_OpenID_AX_FetchRequest();
$req->add(Auth_OpenID_AX_AttrInfo::make('http://not.found/'));
@@ -503,6 +508,8 @@ class FetchResponseTest extends PHPUnit_TestCase {
$expected_args = array(
'mode' => 'fetch_response',
'update_url' => $this->request_update_url,
+ 'type.' . $alias => $uri,
+ 'count.' . $alias => '0'
);
$req = new Auth_OpenID_AX_FetchRequest($this->request_update_url);
$req->add(Auth_OpenID_AX_AttrInfo::make($uri));
@@ -514,8 +521,10 @@ class FetchResponseTest extends PHPUnit_TestCase {
$expected_args = array(
'mode' => 'fetch_response',
'type.' . $this->alias_a => $this->type_a,
- 'value.' . $this->alias_a => $this->value_a,
+ 'value.' . $this->alias_a . '.1' => $this->value_a,
+ 'count.' . $this->alias_a => '1'
);
+
$req = new Auth_OpenID_AX_FetchRequest();
$req->add(Auth_OpenID_AX_AttrInfo::make($this->type_a, 1, false, $this->alias_a));
$this->msg->addValue($this->type_a, $this->value_a);