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$
needsInstalledILIAS
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.
Definition at line 47 of file ilCacheTest.php.
49 include_once
'./Services/Cache/classes/class.ilExampleCache.php';
52 $get = $cache->getEntry(
"test_id");
53 $stat = $cache->getLastAccessStatus();
54 $value = $stat .
"-" . $get .
"-";
56 $get = $cache->storeEntry(
"test_id",
"test_value");
57 $get = $cache->getEntry(
"test_id");
58 $stat = $cache->getLastAccessStatus();
59 $value.= $stat .
"-" . $get .
"-";
63 $get = $cache->getEntry(
"test_id");
64 $stat = $cache->getLastAccessStatus();
65 $value.= $stat .
"-" . $get .
"-";
67 $this->assertEquals(
"miss--hit-test_value-miss--", $value);
◆ $backupGlobals
ilCacheTest::$backupGlobals = false |
|
protected |
The documentation for this class was generated from the following file: