/** * testing getAssociationByHandle * */ public function testGetAssociationByHandleExpiration() { $tmp = $this->_tmpDir; $dir = $tmp . '/openid_consumer'; $expiresIn = time() + 1; $storage = new Storage\File($tmp); $storage->delAssociation(self::URL); $this->assertTrue($storage->addAssociation(self::URL, self::HANDLE, self::MAC_FUNC, self::SECRET, $expiresIn)); sleep(2); $this->assertFalse($storage->getAssociationByHandle(self::HANDLE, $url, $macFunc, $secret, $expires)); }