summaryrefslogtreecommitdiffstats
path: root/Tests/Auth
diff options
context:
space:
mode:
authortailor <cygnus@janrain.com>2007-02-14 22:37:26 +0000
committertailor <cygnus@janrain.com>2007-02-14 22:37:26 +0000
commita01e702b8a34ec0b26ff72e2d5954e54b4880dd7 (patch)
treee31cc1e022422a51a40ffb1a814bf5a9704e0f00 /Tests/Auth
parentda2ec5feccef42c0004bfde3a286d00336a9b052 (diff)
downloadphp-openid-a01e702b8a34ec0b26ff72e2d5954e54b4880dd7.zip
php-openid-a01e702b8a34ec0b26ff72e2d5954e54b4880dd7.tar.gz
php-openid-a01e702b8a34ec0b26ff72e2d5954e54b4880dd7.tar.bz2
[project @ Removed settings table and auth key code from stores]
Diffstat (limited to 'Tests/Auth')
-rw-r--r--Tests/Auth/OpenID/MemStore.php8
-rw-r--r--Tests/Auth/OpenID/StoreTest.php14
2 files changed, 2 insertions, 20 deletions
diff --git a/Tests/Auth/OpenID/MemStore.php b/Tests/Auth/OpenID/MemStore.php
index bbb056a..c9141f7 100644
--- a/Tests/Auth/OpenID/MemStore.php
+++ b/Tests/Auth/OpenID/MemStore.php
@@ -9,11 +9,10 @@ class Tests_Auth_OpenID_MemStore extends Auth_OpenID_OpenIDStore {
var $assocs = null;
var $nonces = null;
- function Tests_Auth_OpenID_MemStore($auth_key=null)
+ function Tests_Auth_OpenID_MemStore()
{
$this->assocs = array();
$this->nonces = array();
- $this->auth_key = $auth_key;
}
function getKey($server_url, $handle)
@@ -96,9 +95,4 @@ class Tests_Auth_OpenID_MemStore extends Auth_OpenID_OpenIDStore {
$this->assocs = array();
$this->nonces = array();
}
-
- function getAuthKey()
- {
- return $this->auth_key;
- }
} \ No newline at end of file
diff --git a/Tests/Auth/OpenID/StoreTest.php b/Tests/Auth/OpenID/StoreTest.php
index bbbaa66..32f13d3 100644
--- a/Tests/Auth/OpenID/StoreTest.php
+++ b/Tests/Auth/OpenID/StoreTest.php
@@ -317,24 +317,12 @@ explicitly');
// And using again has the same effect
$this->_checkUseNonce($store, $nonce1, false, $url, 3);
}
-
- // Auth key functions
-
- // There is no key to start with, so generate a new key and
- // return it.
- $key = $store->getAuthKey();
-
- // The second time around should return the same as last time.
- $key2 = $store->getAuthKey();
- $this->assertEquals($key, $key2, "Auth keys differ");
- $this->assertEquals(strlen($key), $store->AUTH_KEY_LEN,
- "Key length not equals AUTH_KEY_LEN");
}
function test_memstore()
{
require_once 'Tests/Auth/OpenID/MemStore.php';
- $store = new Tests_Auth_OpenID_MemStore('Bogus auth key ');
+ $store = new Tests_Auth_OpenID_MemStore();
$this->_testStore(&$store);
$this->_testNonce(&$store);
}