Example #1
0
 public function testGetItems()
 {
     $keys = ["empty2", "empty3"];
     $items = $this->fp->getItems($keys);
     $this->assertTrue(is_array($items));
     foreach ($keys as $key) {
         $this->assertArrayHasKey($key, $items);
         $this->checkItem($items[$key], $key);
     }
 }
Example #2
0
 public function setUp()
 {
     $fp = new NoCachePool("/tmp");
     $this->item = $fp->getItem("test");
     $this->item->set("testval", 60);
 }