Subversion-Projekte lars-tiefland.php_share

Revision

Blame | Letzte Änderung | Log anzeigen | RSS feed

--TEST--
CacheAPC::reset()

--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, 2);
        var_dump($cache->reset());
?>

--EXPECT--
bool(false)

--CLEAN--
<?php
        require_once dirname(__FILE__) . '/../cachecore.class.php';
        require_once dirname(__FILE__) . '/../cacheapc.class.php';
        $cache = new CacheAPC('test', null, 60);
        $cache->delete();
?>