Blame | Letzte Änderung | Log anzeigen | RSS feed
--TEST--pearbug13693--FILE--<?phprequire_once 'Cache/Lite.php';// Create temp dir$dir = dirname( __FILE__ ) . '/' . uniqid();mkdir( $dir );$options = array('cacheDir' => $dir,'lifeTime' => 60,);$id = '#13693';$cache = new Cache_Lite($options);$cache->save('stuff', $id);// Must be trueecho ( $cache->remove($id) === true ) ? "OK\n" : "ERROR\n";// Will return a PEAR Errorecho ( $cache->remove($id) instanceof PEAR_Error ) ? "OK\n" : "ERROR\n";// Will return trueecho ( $cache->remove($id, 'default', true) === true ) ? "OK\n" : "ERROR\n";// Remove temp dirrmdir( $dir );--EXPECT--OKOKOK