You are here

function ApcCacheTestCase::assertCacheRemoved in APC - Alternative PHP Cache 7

Assert or a cache entry has been removed.

Parameters

$message: Message to display.

$cid: The cache id.

$bin: The bin the cache item was stored in.

2 calls to ApcCacheTestCase::assertCacheRemoved()
ApcCacheClearCase::testClearCid in tests/apc.test
Test clearing using a cid.
ApcCacheIsEmptyCase::testIsEmpty in tests/apc.test
Test clearing using a cid.

File

tests/apc.test, line 72

Class

ApcCacheTestCase

Code

function assertCacheRemoved($message, $cid = NULL, $bin = NULL) {
  if ($bin == NULL) {
    $bin = $this->default_bin;
  }
  if ($cid == NULL) {
    $cid = $this->default_cid;
  }
  $cache = cache_get($cid, $bin);
  $this
    ->assertFalse($cache, $message);
}