Class Tests_Auth_OpenID_Store

Description

Superclass that has methods for testing OpenID stores. Subclass this to test your own store implementation.

Located in /Tests/Auth/OpenID/StoreTest.php (line 72)

PHPUnit_Framework_TestCase
   |
   --Tests_Auth_OpenID_Store
Direct descendents
Class Description
 class Tests_Auth_OpenID_Included_StoreTest Class that tests all of the stores included with the OpenID library
 class Tests_Auth_OpenID_MemcachedStore_Test This is the host that the store test will use
Method Summary
 void genAssoc ( $now, [ $issued = 0], [ $lifetime = 600])
 void pass ()
 void setUp ()
 void _checkRemove ( $store,  $url,  $handle,  $expected, [ $name = null])
 void _checkUseNonce ( $store,  $nonce,  $expected,  $server_url, [ $msg = null])
 void _testNonce ( $store)
 void _testNonceCleanup ( $store)
 void _testStore ( $store)
Methods
genAssoc (line 91)

Generates an association with the specified parameters.

void genAssoc ( $now, [ $issued = 0], [ $lifetime = 600])
  • $now
  • $issued
  • $lifetime
pass (line 74)
void pass ()
setUp (line 79)

Prepares for the SQL store tests.

void setUp ()
_checkRemove (line 112)
void _checkRemove ( $store,  $url,  $handle,  $expected, [ $name = null])
  • $store
  • $url
  • $handle
  • $expected
  • $name
_checkUseNonce (line 310)
void _checkUseNonce ( $store,  $nonce,  $expected,  $server_url, [ $msg = null])
  • $store
  • $nonce
  • $expected
  • $server_url
  • $msg
_testNonce (line 317)
void _testNonce ( $store)
  • $store
_testNonceCleanup (line 345)
void _testNonceCleanup ( $store)
  • $store
_testStore (line 128)

Make sure a given store has a minimum of API compliance. Call this function with an empty store.

Raises AssertionError if the store does not work as expected.

OpenIDStore -> NoneType

void _testStore ( $store)
  • $store

Documentation generated on Thu, 29 Jul 2010 13:59:34 -0700 by phpDocumentor 1.4.3