PHP Class Pinq\Tests\Integration\Caching\CacheTest

Inheritance: extends Pinq\Tests\PinqTestCase
Datei anzeigen Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Property Type Description
$cache Pinq\Caching\ICacheAdapter
$namespacedCache Pinq\Caching\ICacheAdapter
$rootCacheDirectory

Public Methods

Method Description
__construct ( $name = null, array $data = [], $dataName = '' )
testThaGlobalNamespaceCacheWillNotClearOtherNamespaces ( )
testThatCacheDoesNotClearValuesOutsideOfChildNamespace ( )
testThatCacheDoesNotClearValuesOutsideOfNamespace ( )
testThatCacheDoesNotContainValuesNotInGlobalNamespace ( )
testThatCacheDoesNotGetValuesOutsideOfNamespace ( )
testThatCacheDoesNotRemoveValuesOutsideOfNamespace ( )
testThatCacheSavesAllAndRetrievesValues ( )
testThatCacheSupportsArbitraryKeys ( )
testThatClearedCacheRemovesSavedValues ( )
testThatClearingCacheNamespaceOnlyRemovesEntriesInNamespace ( )
testThatContainsReturnsTrueForCacheValueAndFalseForNotContainedKey ( )
testThatForAnotherNamespaceReturnsCacheInCorrectNamespace ( )
testThatForNamespaceReturnsCacheInCorrectNamespace ( )
testThatInGlobalNamespaceReturnsCacheWithoutANamespace ( )
testThatNamespaceWillNotClearInAnotherNamespaces ( )
testThatNamespacedCacheDoesNotContainValuesOutsideOfNamespace ( )
testThatRemovedValueReturnsNull ( )
testThatTryingToGetNonExistentValueReturnsNull ( )

Protected Methods

Method Description
setUp ( )
setUpCache ( ) : Pinq\Caching\ICacheAdapter
tearDown ( )
tearDownCache ( ) : void

Method Details

__construct() public method

public __construct ( $name = null, array $data = [], $dataName = '' )
$data array

setUp() protected method

protected setUp ( )

setUpCache() abstract protected method

abstract protected setUpCache ( ) : Pinq\Caching\ICacheAdapter
return Pinq\Caching\ICacheAdapter

tearDown() protected method

protected tearDown ( )

tearDownCache() protected method

protected tearDownCache ( ) : void
return void

testThaGlobalNamespaceCacheWillNotClearOtherNamespaces() public method

testThatCacheDoesNotClearValuesOutsideOfChildNamespace() public method

testThatCacheDoesNotClearValuesOutsideOfNamespace() public method

testThatCacheDoesNotContainValuesNotInGlobalNamespace() public method

testThatCacheDoesNotGetValuesOutsideOfNamespace() public method

testThatCacheDoesNotRemoveValuesOutsideOfNamespace() public method

testThatCacheSavesAllAndRetrievesValues() public method

testThatCacheSupportsArbitraryKeys() public method

testThatClearedCacheRemovesSavedValues() public method

testThatClearingCacheNamespaceOnlyRemovesEntriesInNamespace() public method

testThatContainsReturnsTrueForCacheValueAndFalseForNotContainedKey() public method

testThatForAnotherNamespaceReturnsCacheInCorrectNamespace() public method

testThatForNamespaceReturnsCacheInCorrectNamespace() public method

testThatInGlobalNamespaceReturnsCacheWithoutANamespace() public method

testThatNamespaceWillNotClearInAnotherNamespaces() public method

testThatNamespacedCacheDoesNotContainValuesOutsideOfNamespace() public method

testThatRemovedValueReturnsNull() public method

testThatTryingToGetNonExistentValueReturnsNull() public method

Property Details

$cache protected_oe property

protected ICacheAdapter,Pinq\Caching $cache
return Pinq\Caching\ICacheAdapter

$namespacedCache protected_oe property

protected ICacheAdapter,Pinq\Caching $namespacedCache
return Pinq\Caching\ICacheAdapter

$rootCacheDirectory protected_oe static_oe property

protected static $rootCacheDirectory