PHP Class Pinq\Tests\Integration\Caching\CacheTest

Inheritance: extends Pinq\Tests\PinqTestCase
Afficher le fichier Open project: timetoogo/pinq Class Usage Examples

Protected Properties

Свойство Type Description
$cache Pinq\Caching\ICacheAdapter
$namespacedCache Pinq\Caching\ICacheAdapter
$rootCacheDirectory

Méthodes publiques

Méthode 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 ( )

Méthodes protégées

Méthode Description
setUp ( )
setUpCache ( ) : Pinq\Caching\ICacheAdapter
tearDown ( )
tearDownCache ( ) : void

Method Details

__construct() public méthode

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

setUp() protected méthode

protected setUp ( )

setUpCache() abstract protected méthode

abstract protected setUpCache ( ) : Pinq\Caching\ICacheAdapter
Résultat Pinq\Caching\ICacheAdapter

tearDown() protected méthode

protected tearDown ( )

tearDownCache() protected méthode

protected tearDownCache ( ) : void
Résultat void

testThaGlobalNamespaceCacheWillNotClearOtherNamespaces() public méthode

testThatCacheDoesNotClearValuesOutsideOfChildNamespace() public méthode

testThatCacheDoesNotClearValuesOutsideOfNamespace() public méthode

testThatCacheDoesNotContainValuesNotInGlobalNamespace() public méthode

testThatCacheDoesNotGetValuesOutsideOfNamespace() public méthode

testThatCacheDoesNotRemoveValuesOutsideOfNamespace() public méthode

testThatCacheSavesAllAndRetrievesValues() public méthode

testThatCacheSupportsArbitraryKeys() public méthode

testThatClearedCacheRemovesSavedValues() public méthode

testThatClearingCacheNamespaceOnlyRemovesEntriesInNamespace() public méthode

testThatContainsReturnsTrueForCacheValueAndFalseForNotContainedKey() public méthode

testThatForAnotherNamespaceReturnsCacheInCorrectNamespace() public méthode

testThatForNamespaceReturnsCacheInCorrectNamespace() public méthode

testThatInGlobalNamespaceReturnsCacheWithoutANamespace() public méthode

testThatNamespaceWillNotClearInAnotherNamespaces() public méthode

testThatNamespacedCacheDoesNotContainValuesOutsideOfNamespace() public méthode

testThatRemovedValueReturnsNull() public méthode

testThatTryingToGetNonExistentValueReturnsNull() public méthode

Property Details

$cache protected_oe property

protected ICacheAdapter,Pinq\Caching $cache
Résultat Pinq\Caching\ICacheAdapter

$namespacedCache protected_oe property

protected ICacheAdapter,Pinq\Caching $namespacedCache
Résultat Pinq\Caching\ICacheAdapter

$rootCacheDirectory protected_oe static_oe property

protected static $rootCacheDirectory