Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
bandwidthThrottle
tokenBucket
TokenBucketTest
tearDown
bandwidthThrottle\tokenBucket\TokenBucketTest::tearDown PHP Méthode
TokenBucketTest Class Documentation
Afficher le fichier
Open project: bandwidth-throttle/token-bucket
tearDown()
protected
méthode
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