Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
--TEST--
2
CacheXCache::delete() and read()
3
 
4
--SKIPIF--
5
<?php
6
	if (!function_exists('xcache_set')) print 'skip XCache extension not available';
7
?>
8
 
9
--FILE--
10
<?php
11
	require_once dirname(__FILE__) . '/../cachecore.class.php';
12
	require_once dirname(__FILE__) . '/../cachexcache.class.php';
13
	$cache = new CacheXCache('test', null, 60);
14
	var_dump($cache->create('test data'));
15
	var_dump($cache->read());
16
	var_dump($cache->delete());
17
	var_dump($cache->read());
18
?>
19
 
20
--EXPECT--
21
bool(true)
22
string(9) "test data"
23
bool(true)
24
bool(false)