Example #1
0
 /**
  * testing getDiscoveryInfo
  *
  */
 public function testGetDiscoveryInfoExpiration()
 {
     $tmp = $this->_tmpDir;
     $dir = $tmp . '/openid_consumer';
     $expiresIn = time() + 1;
     $storage = new Storage\File($tmp);
     $storage->delDiscoveryInfo(self::ID);
     $this->assertTrue($storage->addDiscoveryInfo(self::ID, self::REAL_ID, self::SERVER, self::VERSION, $expiresIn));
     sleep(2);
     $this->assertFalse($storage->getDiscoveryInfo(self::ID, $realId, $server, $version, $expires));
 }