source: trunk/tests/xcache_var.phpt @ 858

Last change on this file since 858 was 858, checked in by moo, 2 years ago

var set/get/inc/dec tests

File size: 419 bytes
RevLine 
[858]1--TEST--
2xcache_set/get test
3--FILE--
4<?php
5var_dump(xcache_isset("a"));
6var_dump(xcache_set("a", 1));
7var_dump(xcache_get("a"));
8var_dump(xcache_isset("a"));
9var_dump(xcache_inc("a", 10));
10var_dump(xcache_get("a"));
11var_dump(xcache_dec("a", 5));
12var_dump(xcache_get("a"));
13xcache_unset("a");
14var_dump(xcache_isset("a"));
15?>
16--EXPECT--
17bool(false)
18bool(true)
19int(1)
20bool(true)
21int(11)
22int(11)
23int(6)
24int(6)
25bool(false)
Note: See TracBrowser for help on using the repository browser.