You are here

function MockOAuthDataStore::lookup_nonce in OAuth 1.0 6

Overrides OAuthDataStore::lookup_nonce

File

./OAuth_TestServer.php, line 81

Class

MockOAuthDataStore
A mock store for testing

Code

function lookup_nonce($consumer, $token, $nonce, $timestamp) {

  /*{{{*/
  if ($consumer->key == $this->consumer->key && ($token && $token->key == $this->request_token->key || $token && $token->key == $this->access_token->key) && $nonce == $this->nonce) {
    return $this->nonce;
  }
  return NULL;
}