PHP 클래스 bandwidthThrottle\tokenBucket\storage\MemcachedStorageTest

These tests need the environment variable MEMCACHE_HOST.
또한 보기: MemcachedStorage
저자: Markus Malkusch ([email protected])
상속: extends PHPUnit_Framework_TestCase
파일 보기 프로젝트 열기: bandwidth-throttle/token-bucket

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
setUp ( )
tearDown ( )

메소드 상세

setUp() 보호된 메소드

protected setUp ( )

tearDown() 보호된 메소드

protected tearDown ( )

testBootstrapFails() 공개 메소드

Tests bootstrap() fails.
public testBootstrapFails ( )

testBootstrapReturnsSilentlyIfKeyExists() 공개 메소드

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

testGetMicrotimeFails() 공개 메소드

Tests getMicrotime() fails.

testIsBootstrappedFails() 공개 메소드

Tests isBootstrapped() fails

testRemoveFails() 공개 메소드

Tests remove() fails
public testRemoveFails ( )

testSetMicrotimeFails() 공개 메소드

Tests setMicrotime() fails.

testSetMicrotimeFailsIfGetMicrotimeNotCalledFirst() 공개 메소드

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

testSetMicrotimeReturnsSilentlyIfCASFailed() 공개 메소드

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