summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosh Hoyt <josh@janrain.com>2006-09-21 18:55:39 +0000
committerJosh Hoyt <josh@janrain.com>2006-09-21 18:55:39 +0000
commit9d0094630e4f6c465b77561efaf81c73db7c1c7e (patch)
tree0afd0abde23eadfed11817c022a42147a08ace7a
parent45da94292394f31c524d41aca4bacf72c7006d73 (diff)
downloadphp-openid-9d0094630e4f6c465b77561efaf81c73db7c1c7e.zip
php-openid-9d0094630e4f6c465b77561efaf81c73db7c1c7e.tar.gz
php-openid-9d0094630e4f6c465b77561efaf81c73db7c1c7e.tar.bz2
[project @ Fix passing non-variables by reference in Server test]
-rw-r--r--Tests/Auth/OpenID/Server.php21
1 files changed, 9 insertions, 12 deletions
diff --git a/Tests/Auth/OpenID/Server.php b/Tests/Auth/OpenID/Server.php
index 0e0d3b4..231272b 100644
--- a/Tests/Auth/OpenID/Server.php
+++ b/Tests/Auth/OpenID/Server.php
@@ -581,10 +581,9 @@ class Tests_Auth_OpenID_SigningEncode extends PHPUnit_TestCase {
function test_idres()
{
$assoc_handle = '{bicycle}{shed}';
- $this->store->storeAssociation(
- $this->normal_key,
- Auth_OpenID_Association::fromExpiresIn(60, $assoc_handle,
- 'sekrit', 'HMAC-SHA1'));
+ $assoc = Auth_OpenID_Association::fromExpiresIn(60, $assoc_handle,
+ 'sekrit', 'HMAC-SHA1');
+ $this->store->storeAssociation($this->normal_key, $assoc);
$this->request->assoc_handle = $assoc_handle;
$webresponse = $this->encoder->encode($this->response);
$this->assertEquals($webresponse->code, AUTH_OPENID_HTTP_REDIRECT);
@@ -1122,10 +1121,9 @@ class Tests_Auth_OpenID_Signatory extends PHPUnit_TestCase {
{
$request = new Auth_OpenID_ServerRequest();
$assoc_handle = '{assoc}{lookatme}';
- $this->store->storeAssociation(
- $this->normal_key,
- Auth_OpenID_Association::fromExpiresIn(60, $assoc_handle,
- 'sekrit', 'HMAC-SHA1'));
+ $assoc = Auth_OpenID_Association::fromExpiresIn(60, $assoc_handle,
+ 'sekrit', 'HMAC-SHA1');
+ $this->store->storeAssociation($this->normal_key, $assoc);
$request->assoc_handle = $assoc_handle;
$response = new Auth_OpenID_CheckIDResponse($request);
$response->fields = array(
@@ -1175,10 +1173,9 @@ class Tests_Auth_OpenID_Signatory extends PHPUnit_TestCase {
{
$request = new Auth_OpenID_ServerRequest();
$assoc_handle = '{assoc}{lookatme}';
- $this->store->storeAssociation(
- $this->normal_key,
- Auth_OpenID_Association::fromExpiresIn(-10, $assoc_handle,
- 'sekrit', 'HMAC-SHA1'));
+ $assoc = Auth_OpenID_Association::fromExpiresIn(-10, $assoc_handle,
+ 'sekrit', 'HMAC-SHA1');
+ $this->store->storeAssociation($this->normal_key, $assoc);
$this->assertTrue($this->store->getAssociation($this->normal_key,
$assoc_handle));