Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
bandwidthThrottle
tokenBucket
TokenBucketTest
provideTestInvalidCapacity
bandwidthThrottle\tokenBucket\TokenBucketTest::provideTestInvalidCapacity PHP Method
TokenBucketTest Class Documentation
Datei anzeigen
Open project: bandwidth-throttle/token-bucket
provideTestInvalidCapacity()
public
method
Provides tests cases for testInvalidCapacity().
public
provideTestInvalidCapacity
( ) :
array
return
array
Test cases.
public function provideTestInvalidCapacity() { return [[0], [-1]]; }
TokenBucketTest
getTokensShouldReturnCapacityAfterWaitingLongerThanRefillPeriod
getTokensShouldReturnCapacityAfterWaitingRefillPeriod
getTokensShouldReturnInitialAmountOnBootstrap
getTokensShouldReturnMoreAfterWaiting
getTokensShouldReturnRemainingTokensAfterConsumption
getTokensShouldReturnSameAfterConsumingTooMany
getTokensShouldReturnZeroTokensAfterConsumingAll
provideTestBootstrapWithInitialTokens
provideTestInvalidCapacity
setUp
tearDown
testBootstrapOnce
testBootstrapWithInitialTokens
testCapacity
testConsume
testConsumeInsufficientDontRemoveTokens
testConsumeSufficientRemoveTokens
testConsumeTooMany
testDefaultBootstrap
testInitialTokensTooMany
testInvalidCapacity
testWaitCalculation
testWaitingAddsTokens