Example #1
0
 public function testNeverToExpireItems()
 {
     $this->checkDeps();
     $storage = new WURFL_Storage_Apc();
     $storage->save("foo", "foo");
     sleep(2);
     $this->assertEquals("foo", $storage->load("foo"));
 }
Example #2
0
 private function assertThanNoElementsAreInCache($keys = array(), WURFL_Storage_Apc $storage)
 {
     foreach ($keys as $key) {
         $this->assertNull($storage->load($key));
     }
 }