Unit tests for data cache.
More...
Public Member Functions |
| testCache () |
| Cache tests.
|
Protected Member Functions |
| setUp () |
Detailed Description
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.
Member Function Documentation
ilCacheTest::testCache |
( |
| ) |
|
Cache tests.
- Parameters
-
Definition at line 48 of file ilCacheTest.php.
References $cache.
{
include_once './Services/Cache/classes/class.ilExampleCache.php';
$get =
$cache->getEntry(
"test_id");
$stat =
$cache->getLastAccessStatus();
$value.= $stat."-".$get."-";
$get =
$cache->storeEntry(
"test_id",
"test_value");
$get =
$cache->getEntry(
"test_id");
$stat =
$cache->getLastAccessStatus();
$value.= $stat."-".$get."-";
sleep(6);
$get =
$cache->getEntry(
"test_id");
$stat =
$cache->getLastAccessStatus();
$value.= $stat."-".$get."-";
$this->assertEquals("miss--hit-test_value-miss--", $value);
}
Field Documentation
ilCacheTest::$backupGlobals = FALSE |
|
protected |
The documentation for this class was generated from the following file: