Edit File: apc_method_delete.phpt
--TEST-- CacheAPC::delete() and 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); var_dump($cache->create('test data')); var_dump($cache->read()); var_dump($cache->delete()); var_dump($cache->read()); ?> --EXPECT-- bool(true) string(9) "test data" bool(true) bool(false)
Back to File Manager