TimeTrex Community Edition v16.2.0
This commit is contained in:
54
vendor/pear/cache_lite/tests/pearbug513.phpt
vendored
Normal file
54
vendor/pear/cache_lite/tests/pearbug513.phpt
vendored
Normal file
@ -0,0 +1,54 @@
|
||||
--TEST--
|
||||
pearbug513
|
||||
--INI--
|
||||
track_errors=Off
|
||||
--FILE--
|
||||
<?php
|
||||
|
||||
require_once __DIR__ . '/callcache.inc';
|
||||
require_once __DIR__ . '/tmpdir.inc';
|
||||
require_once __DIR__ . '/cache_lite_base.inc';
|
||||
|
||||
$options = array(
|
||||
'cacheDir' => tmpDir() . '/',
|
||||
'lifeTime' => 60,
|
||||
'automaticSerialization' => true
|
||||
);
|
||||
|
||||
$Cache_Lite = new Cache_Lite($options);
|
||||
multipleCallCache();
|
||||
|
||||
?>
|
||||
--GET--
|
||||
--POST--
|
||||
--EXPECT--
|
||||
==> First call (cache should be missed)
|
||||
Cache Missed !
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
Done !
|
||||
|
||||
==> Second call (cache should be hit)
|
||||
Cache Hit !
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
Done !
|
||||
|
||||
==> Third call (cache should be hit)
|
||||
Cache Hit !
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
Done !
|
||||
|
||||
==> We remove cache
|
||||
Done !
|
||||
|
||||
==> Fourth call (cache should be missed)
|
||||
Cache Missed !
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
Done !
|
||||
|
||||
==> #5 Call with another id (cache should be missed)
|
||||
Cache Missed !
|
||||
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
|
||||
Done !
|
||||
|
||||
==> We remove cache
|
||||
Done !
|
Reference in New Issue
Block a user