/usr/share/doc/php-cache-lite/tests/Cache_Lite_error3.phpt is in php-cache-lite 1.7.4-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | --TEST--
Cache_Lite::Cache_Lite (error3)
--FILE--
<?php
require_once('callcache.inc');
require_once('tmpdir.inc');
require_once('cache_lite_base.inc');
$options = array(
'cacheDir' => tmpDir() . '31451992gjhgjh'. '/', # I hope there will be no directory with that silly name
'lifeTime' => 60,
'pearErrorMode' => CACHE_LITE_ERROR_DIE
);
$Cache_Lite = new Cache_Lite($options);
multipleCallCache();
?>
--GET--
--POST--
--EXPECT--
==> First call (cache should be missed)
Cache Missed !
0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789Cache_Lite : Unable to write cache file : /tmp31451992gjhgjh/cache_c21f969b5f03d33d43e04f8f136e7682_e9982ec5ca981bd365603623cf4b2277
|