diff options
author | Christian Schneider | 2016-05-10 16:21:32 +0200 |
---|---|---|
committer | Christian Schneider | 2016-05-10 16:21:32 +0200 |
commit | c3ac61c52780b91653efeeb88eb90739ee0a7b31 (patch) | |
tree | d5cd5fe8cbf326d1e96ca0135c7f381164620d44 /tests/it_cache.t | |
parent | 01a6c305cf7683830a9497eb8f124b8420f7100f (diff) | |
download | itools-c3ac61c52780b91653efeeb88eb90739ee0a7b31.tar.gz itools-c3ac61c52780b91653efeeb88eb90739ee0a7b31.tar.bz2 itools-c3ac61c52780b91653efeeb88eb90739ee0a7b31.zip |
Adapt ITools to Memcached extension (used with PHP 7)
Diffstat (limited to 'tests/it_cache.t')
-rwxr-xr-x | tests/it_cache.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/it_cache.t b/tests/it_cache.t index 66fc2d3..8f804d4 100755 --- a/tests/it_cache.t +++ b/tests/it_cache.t @@ -32,14 +32,17 @@ is(it_cache::get('it_cache_t'.rand(1, 1000)), null, "local get unknown key"); $GLOBALS['debug_aslive'] = 1; it_cache::put('it_cache_d', 42, array('distributed' => 1)); +it_cache::put('it_cache_d', 0); unset($GLOBALS['it_cache_local']); is(intval(it_cache::get('it_cache_d', array('distributed' => 1))), 42, "distributed put/get number"); it_cache::put('it_cache_d', false, array('distributed' => 1)); +it_cache::put('it_cache_d', 1); unset($GLOBALS['it_cache_local']); is(boolval(it_cache::get('it_cache_d', array('distributed' => 1))), false, "distributed put/get false"); it_cache::put('it_cache_d', array(2), array('distributed' => 1)); +it_cache::put('it_cache_d', 0); unset($GLOBALS['it_cache_local']); is(it_cache::get('it_cache_d', array('distributed' => 1)), array(2), "distributed put/get array"); |