Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
Cache_Lite::Cache_Lite (error)
3
--FILE--
4
<?php
5
 
6
require_once('callcache.inc');
7
require_once('tmpdir.inc');
8
require_once('cache_lite_base.inc');
9
 
10
$options = array(
11
    'cacheDir' => tmpDir() . '31451992gjhgjh'. '/', # I hope there will be no directory with that silly name
12
    'lifeTime' => 60
13
);
14
 
15
$Cache_Lite = new Cache_Lite($options);
16
multipleCallCache();
17
 
18
?>
19
--GET--
20
--POST--
21
--EXPECT--
22
==> First call (cache should be missed)
23
Cache Missed !
24
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
25
Error when saving cache !
26
 
27
Done !
28
 
29
==> Second call (cache should be hit)
30
Cache Missed !
31
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
32
Error when saving cache !
33
 
34
Done !
35
 
36
==> Third call (cache should be hit)
37
Cache Missed !
38
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
39
Error when saving cache !
40
 
41
Done !
42
 
43
==> We remove cache
44
Done !
45
 
46
==> Fourth call (cache should be missed)
47
Cache Missed !
48
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
49
Error when saving cache !
50
 
51
Done !
52
 
53
==> #5 Call with another id (cache should be missed)
54
Cache Missed !
55
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
56
Error when saving cache !
57
 
58
Done !
59
 
60
==> We remove cache
61
Done !