Toggle navigation
Hot Examples
EN
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Search
Home
bandwidthThrottle
tokenBucket
TokenBucketTest
tearDown
bandwidthThrottle\tokenBucket\TokenBucketTest::tearDown PHP Method
TokenBucketTest Class Documentation
Show file
Open project: bandwidth-throttle/token-bucket
tearDown()
protected
method
protected
tearDown
( )
protected function tearDown() { $this->sleepEnvironent->disable(); }
TokenBucketTest
getTokensShouldReturnCapacityAfterWaitingLongerThanRefillPeriod
getTokensShouldReturnCapacityAfterWaitingRefillPeriod
getTokensShouldReturnInitialAmountOnBootstrap
getTokensShouldReturnMoreAfterWaiting
getTokensShouldReturnRemainingTokensAfterConsumption
getTokensShouldReturnSameAfterConsumingTooMany
getTokensShouldReturnZeroTokensAfterConsumingAll
provideTestBootstrapWithInitialTokens
provideTestInvalidCapacity
setUp
tearDown
testBootstrapOnce
testBootstrapWithInitialTokens
testCapacity
testConsume
testConsumeInsufficientDontRemoveTokens
testConsumeSufficientRemoveTokens
testConsumeTooMany
testDefaultBootstrap
testInitialTokensTooMany
testInvalidCapacity
testWaitCalculation
testWaitingAddsTokens