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 (error2)
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
    'errorHandlingAPIBreak' => true
14
);
15
 
16
$Cache_Lite = new Cache_Lite($options);
17
multipleCallCache();
18
 
19
?>
20
--GET--
21
--POST--
22
--EXPECT--
23
==> First call (cache should be missed)
24
Cache Missed !
25
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
26
PEAR_ERROR : Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277 (#-1)
27
 
28
Done !
29
 
30
==> Second call (cache should be hit)
31
Cache Missed !
32
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
33
PEAR_ERROR : Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277 (#-1)
34
 
35
Done !
36
 
37
==> Third call (cache should be hit)
38
Cache Missed !
39
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
40
PEAR_ERROR : Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277 (#-1)
41
 
42
Done !
43
 
44
==> We remove cache
45
Done !
46
 
47
==> Fourth call (cache should be missed)
48
Cache Missed !
49
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
50
PEAR_ERROR : Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277 (#-1)
51
 
52
Done !
53
 
54
==> #5 Call with another id (cache should be missed)
55
Cache Missed !
56
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
57
PEAR_ERROR : Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_07eeaa82211be6c3335603523dbea0a3 (#-1)
58
 
59
Done !
60
 
61
==> We remove cache
62
Done !