diff options
author | Josh Hoyt <josh@janrain.com> | 2006-01-05 02:03:02 +0000 |
---|---|---|
committer | Josh Hoyt <josh@janrain.com> | 2006-01-05 02:03:02 +0000 |
commit | 90a30f61ed109a9bb26c2996d3b82d161633d0d0 (patch) | |
tree | 9e64dafbb0b31f366c1b37c47c2b11eaa3512546 | |
parent | f92a9025dd913c65d8883456f1c6e795dee29781 (diff) | |
download | php-openid-90a30f61ed109a9bb26c2996d3b82d161633d0d0.zip php-openid-90a30f61ed109a9bb26c2996d3b82d161633d0d0.tar.gz php-openid-90a30f61ed109a9bb26c2996d3b82d161633d0d0.tar.bz2 |
[project @ Resolve conflict]
-rw-r--r-- | Tests/Net/OpenID/StoreTest.php | 35 |
1 files changed, 0 insertions, 35 deletions
diff --git a/Tests/Net/OpenID/StoreTest.php b/Tests/Net/OpenID/StoreTest.php index 61e09c0..e8826be 100644 --- a/Tests/Net/OpenID/StoreTest.php +++ b/Tests/Net/OpenID/StoreTest.php @@ -100,35 +100,6 @@ class Tests_Net_OpenID_StoreTest extends PHPUnit_TestCase { $server_url = 'http://www.myopenid.com/openid'; - function checkRetrieve(&$store, $url, - $handle = null, $expected = null) { - $retrieved_assoc = $store->getAssociation($url, $handle); - if (($expected === null) || ($store->isDumb())) { - assert($retrieved_assoc === null); - } else { - assert($retrieved_assoc == $expected); - /** - * The following test doesn't mean the same thing in - * PHP that it does in Python. - - if ($retrieved_assoc === $expected) { - print 'Unexpected: retrieved a reference to the expected ' . - 'value instead of a new object\n'; - } - - */ - assert($retrieved_assoc->handle == $expected->handle); - assert($retrieved_assoc->secret == $expected->secret); - } - } - - function checkRemove(&$store, $url, $handle, $expected) { - $present = $store->removeAssociation($url, $handle); - $expectedPresent = (!$store->isDumb() && $expected); - assert((!$expectedPresent && !$present) || - ($expectedPresent && $present)); - } - $assoc = $this->genAssoc($now); $this->_checkRetrieve($store, $server_url, null, null, @@ -222,12 +193,6 @@ explicitly'); function _testNonce(&$store) { // Nonce functions - function testUseNonce($store, $nonce, $expected) { - $actual = $store->useNonce($nonce); - $expected = $store->isDumb() || $expected; - assert(($actual && $expected) || (!$actual && !$expected)); - } - // Random nonce (not in store) $nonce1 = $this->generateNonce(); |