protected function MemcacheTestCase::assertCacheExists in Memcache API and Integration 7
Same name in this branch
- 7 tests/memcache.test \MemcacheTestCase::assertCacheExists()
- 7 tests/memcache6.test \MemcacheTestCase::assertCacheExists()
Same name and namespace in other branches
- 6 tests/memcache.test \MemcacheTestCase::assertCacheExists()
Assert or a cache entry exists.
Parameters
string $message: Message to display.
mixed $var: Defaults to $this->default_value. The variable the cache should contain.
string $cid: Defaults to $this->default_cid. The cache id.
string $bin: Defaults to $this->default_bin. The bin the cache item was stored in.
File
- tests/
memcache.test, line 186 - Test cases for the memcache cache backend.
Class
- MemcacheTestCase
- @file Test cases for the memcache cache backend.
Code
protected function assertCacheExists($message, $var = NULL, $cid = NULL, $bin = NULL) {
if ($bin == NULL) {
$bin = $this->default_bin;
}
if ($cid == NULL) {
$cid = $this->default_cid;
}
if ($var == NULL) {
$var = $this->default_value;
}
$this
->assertTrue($this
->checkCacheExists($cid, $var, $bin), $message);
}