39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
51 include_once
'./Services/Cache/classes/class.ilExampleCache.php';
54 $get = $cache->getEntry(
"test_id");
55 $stat = $cache->getLastAccessStatus();
56 $value.= $stat.
"-".$get.
"-";
58 $get = $cache->storeEntry(
"test_id",
"test_value");
59 $get = $cache->getEntry(
"test_id");
60 $stat = $cache->getLastAccessStatus();
61 $value.= $stat.
"-".$get.
"-";
65 $get = $cache->getEntry(
"test_id");
66 $stat = $cache->getLastAccessStatus();
67 $value.= $stat.
"-".$get.
"-";
69 $this->assertEquals(
"miss--hit-test_value-miss--", $value);