Edit File: apc_method_update_read.phpt
--TEST-- CacheAPC::update() then read() --SKIPIF-- <?php if (!function_exists('apc_add')) print 'skip APC extension not available'; ?> --FILE-- <?php require_once dirname(__FILE__) . '/../cachecore.class.php'; require_once dirname(__FILE__) . '/../cacheapc.class.php'; $cache = new CacheAPC('test', null, 60); $cache->create('test data'); $cache->update('test data updated'); var_dump($cache->read()); ?> --EXPECT-- string(17) "test data updated" --CLEAN-- <?php require_once dirname(__FILE__) . '/../cachecore.class.php'; require_once dirname(__FILE__) . '/../cacheapc.class.php'; $cache = new CacheAPC('test', null, 60); $cache->delete(); ?>
Back to File Manager