PHP Class bandwidthThrottle\tokenBucket\storage\MemcachedStorageTest

These tests need the environment variable MEMCACHE_HOST.
See also: MemcachedStorage
Author: Markus Malkusch ([email protected])
Inheritance: extends PHPUnit_Framework_TestCase
Afficher le fichier Open project: bandwidth-throttle/token-bucket

Méthodes publiques

Méthode Description
testBootstrapFails ( ) Tests bootstrap() fails.
testBootstrapReturnsSilentlyIfKeyExists ( ) Tests bootstrap() returns silenty if the key exists already.
testGetMicrotimeFails ( ) Tests getMicrotime() fails.
testIsBootstrappedFails ( ) Tests isBootstrapped() fails
testRemoveFails ( ) Tests remove() fails
testSetMicrotimeFails ( ) Tests setMicrotime() fails.
testSetMicrotimeFailsIfGetMicrotimeNotCalledFirst ( ) Tests setMicrotime() fails if getMicrotime() wasn't called first.
testSetMicrotimeReturnsSilentlyIfCASFailed ( ) Tests setMicrotime() returns silenty if the cas operation failed.

Méthodes protégées

Méthode Description
setUp ( )
tearDown ( )

Method Details

setUp() protected méthode

protected setUp ( )

tearDown() protected méthode

protected tearDown ( )

testBootstrapFails() public méthode

Tests bootstrap() fails.
public testBootstrapFails ( )

testBootstrapReturnsSilentlyIfKeyExists() public méthode

Tests bootstrap() returns silenty if the key exists already.

testGetMicrotimeFails() public méthode

Tests getMicrotime() fails.

testIsBootstrappedFails() public méthode

Tests isBootstrapped() fails

testRemoveFails() public méthode

Tests remove() fails
public testRemoveFails ( )

testSetMicrotimeFails() public méthode

Tests setMicrotime() fails.

testSetMicrotimeFailsIfGetMicrotimeNotCalledFirst() public méthode

Tests setMicrotime() fails if getMicrotime() wasn't called first.

testSetMicrotimeReturnsSilentlyIfCASFailed() public méthode

Tests setMicrotime() returns silenty if the cas operation failed.