Exemple #1
0
 /**
  * @covers BagOStuff::getWithSetCallback
  */
 public function testGetWithSetCallback()
 {
     $key = wfMemcKey('test');
     $value = $this->cache->getWithSetCallback($key, 30, function () {
         return 'hello kitty';
     });
     $this->assertEquals('hello kitty', $value);
     $this->assertEquals($value, $this->cache->get($key));
 }