Beispiel #1
0
 public function testforgetCodeFromCache_putCodeToCache_getCodeFromCache_setCacheMinutes()
 {
     $this->vcode->setStore($st = new Store());
     $this->vcode->setCacheMinutes(13);
     $this->vcode->putCodeToCache($mobile = 'mo-hello', $code = 'c-code', $bag = 'bag-my');
     $this->assertNotEmpty($st);
     $this->assertSame($code, $this->vcode->getCodeFromCache($mobile, $bag));
     $this->assertSame(13, $st->store[$this->vcode->getCacheKey($mobile, $bag)]['min']);
     $this->vcode->forgetCodeFromCache($mobile, $bag);
     $this->assertEmpty($st->store);
 }