Unit tests for data cache.
More...
Unit tests for data cache.
- Author
- Stefan Meyer meyer.nosp@m.@lei.nosp@m.fos.c.nosp@m.om
- Version
- $Id$
Definition at line 33 of file ilCacheTest.php.
◆ setUp()
Definition at line 37 of file ilCacheTest.php.
39 include_once(
"./Services/PHPUnit/classes/class.ilUnitUtil.php");
40 ilUnitUtil::performInitialisation();
◆ testCache()
ilCacheTest::testCache |
( |
| ) |
|
Cache tests IL_Init.
- Parameters
-
Definition at line 49 of file ilCacheTest.php.
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);
◆ $backupGlobals
ilCacheTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: