source: trunk/tests/xcache_var.phpt @ 1497

Last change on this file since 1497 was 1497, checked in by moo, 4 months ago

adds ini and skips for testing this module alone

File size: 525 bytes
Line 
1--TEST--
2xcache_set/get test
3--SKIPIF--
4<?php
5require("skipif.inc");
6?>
7--INI--
8xcache.test = 1
9xcache.size = 32M
10xcache.var_size = 2M
11--FILE--
12<?php
13var_dump(xcache_isset("a"));
14var_dump(xcache_set("a", 1));
15var_dump(xcache_get("a"));
16var_dump(xcache_isset("a"));
17var_dump(xcache_inc("a", 10));
18var_dump(xcache_get("a"));
19var_dump(xcache_dec("a", 5));
20var_dump(xcache_get("a"));
21xcache_unset("a");
22var_dump(xcache_isset("a"));
23?>
24--EXPECT--
25bool(false)
26bool(true)
27int(1)
28bool(true)
29int(11)
30int(11)
31int(6)
32int(6)
33bool(false)
Note: See TracBrowser for help on using the repository browser.