E2E_Cache_APCcacheTest
extends E2E_Cache_CacheTestCase
in package
Verify that CRM_Utils_Cache_APCcache complies with PSR-16.
Tags
Table of Contents
Constants
- MAX_KEY = 255
Properties
- $cache : CiviSimpleCacheTest
- $skippedTests : array<string|int, mixed>
Methods
- advanceTime() : mixed
- Advance time perceived by the cache for the purposes of testing TTL.
- createSimpleCache() : CiviSimpleCacheTest
- invalidArrayKeys() : array<string|int, mixed>
- Data provider for invalid array keys.
- invalidKeys() : array<string|int, mixed>
- Data provider for invalid cache keys.
- invalidTtl() : array<string|int, mixed>
- setUpBeforeClass() : void
- setupService() : mixed
- tearDownService() : mixed
- testBasicUsageWithLongKey() : void
- testBinaryData() : void
- testClear() : void
- testDataTypeArray() : void
- testDataTypeBoolean() : void
- testDataTypeFloat() : void
- testDataTypeInteger() : void
- testDataTypeObject() : void
- testDataTypeString() : void
- testDelete() : void
- testDeleteInvalidKeys() : mixed
- testDeleteMultiple() : void
- testDeleteMultipleGenerator() : void
- testDeleteMultipleInvalidKeys() : mixed
- testDeleteMultipleNoIterable() : void
- testGet() : void
- testGetInvalidKeys() : mixed
- testGetMultiple() : void
- testGetMultipleInvalidKeys() : mixed
- testGetMultipleNoIterable() : void
- testGetMultipleWithGenerator() : void
- testHas() : void
- testHasInvalidKeys() : mixed
- testNullOverwrite() : void
- testObjectAsDefaultValue() : void
- testObjectDoesNotChangeInCache() : void
- testSet() : void
- testSetExpiredTtl() : void
- testSetInvalidKeys() : mixed
- testSetInvalidTtl() : mixed
- testSetMultiple() : void
- testSetMultipleExpiredTtl() : void
- testSetMultipleInvalidKeys() : mixed
- testSetMultipleInvalidTtl() : mixed
- testSetMultipleNoIterable() : void
- testSetMultipleTtl() : void
- testSetMultipleValidData() : mixed
- testSetMultipleValidKeys() : mixed
- testSetMultipleWithGenerator() : void
- testSetMultipleWithIntegerArrayKey() : void
- testSetTtl() : void
- testSetValidData() : mixed
- testSetValidKeys() : mixed
- validData() : array<string|int, mixed>
- Data provider for valid data to store.
- validKeys() : array<string|int, mixed>
- Data provider for valid keys.
Constants
MAX_KEY
public
mixed
MAX_KEY
= 255
Properties
$cache
protected
CiviSimpleCacheTest
$cache
$skippedTests
protected
array<string|int, mixed>
$skippedTests
= []
with functionName => reason.
Methods
advanceTime()
Advance time perceived by the cache for the purposes of testing TTL.
public
advanceTime(int $seconds) : mixed
The default implementation sleeps for the specified duration, but subclasses are encouraged to override this, adjusting a mocked time possibly set up in , to speed up the tests.
Parameters
- $seconds : int
createSimpleCache()
public
createSimpleCache() : CiviSimpleCacheTest
Return values
CiviSimpleCacheTest —that is used in the tests
invalidArrayKeys()
Data provider for invalid array keys.
public
static invalidArrayKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>invalidKeys()
Data provider for invalid cache keys.
public
static invalidKeys() : array<string|int, mixed>
Return values
array<string|int, mixed>invalidTtl()
public
static invalidTtl() : array<string|int, mixed>
Return values
array<string|int, mixed>setUpBeforeClass()
public
static setUpBeforeClass() : void
setupService()
public
setupService() : mixed
Tags
tearDownService()
public
tearDownService() : mixed
Tags
testBasicUsageWithLongKey()
public
testBasicUsageWithLongKey() : void
testBinaryData()
public
testBinaryData() : void
testClear()
public
testClear() : void
testDataTypeArray()
public
testDataTypeArray() : void
testDataTypeBoolean()
public
testDataTypeBoolean() : void
testDataTypeFloat()
public
testDataTypeFloat() : void
testDataTypeInteger()
public
testDataTypeInteger() : void
testDataTypeObject()
public
testDataTypeObject() : void
testDataTypeString()
public
testDataTypeString() : void
testDelete()
public
testDelete() : void
testDeleteInvalidKeys()
public
testDeleteInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testDeleteMultiple()
public
testDeleteMultiple() : void
testDeleteMultipleGenerator()
public
testDeleteMultipleGenerator() : void
testDeleteMultipleInvalidKeys()
public
testDeleteMultipleInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testDeleteMultipleNoIterable()
public
testDeleteMultipleNoIterable() : void
testGet()
public
testGet() : void
testGetInvalidKeys()
public
testGetInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testGetMultiple()
public
testGetMultiple() : void
testGetMultipleInvalidKeys()
public
testGetMultipleInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testGetMultipleNoIterable()
public
testGetMultipleNoIterable() : void
testGetMultipleWithGenerator()
public
testGetMultipleWithGenerator() : void
testHas()
public
testHas() : void
testHasInvalidKeys()
public
testHasInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testNullOverwrite()
public
testNullOverwrite() : void
testObjectAsDefaultValue()
public
testObjectAsDefaultValue() : void
testObjectDoesNotChangeInCache()
public
testObjectDoesNotChangeInCache() : void
testSet()
public
testSet() : void
testSetExpiredTtl()
public
testSetExpiredTtl() : void
testSetInvalidKeys()
public
testSetInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testSetInvalidTtl()
public
testSetInvalidTtl(mixed $ttl) : mixed
Parameters
- $ttl : mixed
Tags
testSetMultiple()
public
testSetMultiple() : void
testSetMultipleExpiredTtl()
public
testSetMultipleExpiredTtl() : void
testSetMultipleInvalidKeys()
public
testSetMultipleInvalidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testSetMultipleInvalidTtl()
public
testSetMultipleInvalidTtl(mixed $ttl) : mixed
Parameters
- $ttl : mixed
Tags
testSetMultipleNoIterable()
public
testSetMultipleNoIterable() : void
testSetMultipleTtl()
public
testSetMultipleTtl() : void
Tags
testSetMultipleValidData()
public
testSetMultipleValidData(mixed $data) : mixed
Parameters
- $data : mixed
Tags
testSetMultipleValidKeys()
public
testSetMultipleValidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
testSetMultipleWithGenerator()
public
testSetMultipleWithGenerator() : void
testSetMultipleWithIntegerArrayKey()
public
testSetMultipleWithIntegerArrayKey() : void
testSetTtl()
public
testSetTtl() : void
Tags
testSetValidData()
public
testSetValidData(mixed $data) : mixed
Parameters
- $data : mixed
Tags
testSetValidKeys()
public
testSetValidKeys(mixed $key) : mixed
Parameters
- $key : mixed
Tags
validData()
Data provider for valid data to store.
public
static validData() : array<string|int, mixed>
Return values
array<string|int, mixed>validKeys()
Data provider for valid keys.
public
static validKeys() : array<string|int, mixed>