diff options
Diffstat (limited to 'test/it_cache.t')
| -rwxr-xr-x | test/it_cache.t | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/test/it_cache.t b/test/it_cache.t index 3e2fb0d..10f639d 100755 --- a/test/it_cache.t +++ b/test/it_cache.t @@ -3,29 +3,29 @@ # test array_based process cache it_cache::put('it_cache_t', 42); -is(it_cache::get('it_cache_t'), 42, "cache put number"); +is_(it_cache::get('it_cache_t'), 42, "cache put number"); it_cache::put('it_cache_t', false); -is(it_cache::get('it_cache_t'), false, "cache get number"); +is_(it_cache::get('it_cache_t'), false, "cache get number"); it_cache::put('it_cache_t', [2]); -is(it_cache::get('it_cache_t'), [2], "cache put/get array"); +is_(it_cache::get('it_cache_t'), [2], "cache put/get array"); # test non-distributed apc cache it_cache::put('it_cache_t', 42); it_cache::$_local = []; -is(it_cache::get('it_cache_t'), 42, "local put/get number"); +is_(it_cache::get('it_cache_t'), 42, "local put/get number"); it_cache::put('it_cache_t', false); it_cache::$_local = []; -is(it_cache::get('it_cache_t'), false, "local put/get false"); +is_(it_cache::get('it_cache_t'), false, "local put/get false"); it_cache::put('it_cache_t', [2]); it_cache::$_local = []; -is(it_cache::get('it_cache_t'), [2], "local put/get array"); +is_(it_cache::get('it_cache_t'), [2], "local put/get array"); -is(it_cache::get('it_cache_t'.rand(1, 1000)), null, "local get unknown key"); +is_(it_cache::get('it_cache_t'.rand(1, 1000)), null, "local get unknown key"); # test distributed memcache @@ -34,16 +34,16 @@ $GLOBALS['debug_aslive'] = 1; it_cache::put('it_cache_d', 42, ['distributed' => 1]); it_cache::put('it_cache_d', 1); it_cache::$_local = []; -is(intval(it_cache::get('it_cache_d', ['distributed' => 1])), 42, "distributed put/get number"); +is_(intval(it_cache::get('it_cache_d', ['distributed' => 1])), 42, "distributed put/get number"); it_cache::put('it_cache_d', false, ['distributed' => 1]); it_cache::put('it_cache_d', 2); it_cache::$_local = []; -is(boolval(it_cache::get('it_cache_d', ['distributed' => 1])), false, "distributed put/get false"); +is_(boolval(it_cache::get('it_cache_d', ['distributed' => 1])), false, "distributed put/get false"); it_cache::put('it_cache_d', [2], ['distributed' => 1]); it_cache::put('it_cache_d', 3); it_cache::$_local = []; -is(it_cache::get('it_cache_d', ['distributed' => 1]), [2], "distributed put/get array"); +is_(it_cache::get('it_cache_d', ['distributed' => 1]), [2], "distributed put/get array"); -is(it_cache::get('it_cache_d'.rand(1, 1000), ['distributed' => 1]), null, "distributed get unknown key"); +is_(it_cache::get('it_cache_d'.rand(1, 1000), ['distributed' => 1]), null, "distributed get unknown key"); |