PHP Class spec\Tolerance\Throttling\RateLimit\LeakyBucketSpec

Inheritance: extends PhpSpec\ObjectBehavior
Datei anzeigen Open project: sroze/tolerance

Public Methods

Method Description
it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
it_has_not_reached_the_limit_by_default ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
it_increments_the_number_of_ticks ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\RateMeasure\RateMeasure $measure, Tolerance\Throttling\Rate\Rate $rate )
it_is_a_rate_limit ( )
let ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )

Method Details

it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure() public method

public it_creates_and_saves_the_measure_after_a_tick_if_no_existing_measure ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage

it_has_not_reached_the_limit_by_default() public method

public it_has_not_reached_the_limit_by_default ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage

it_increments_the_number_of_ticks() public method

public it_increments_the_number_of_ticks ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage, Tolerance\Throttling\RateMeasure\RateMeasure $measure, Tolerance\Throttling\Rate\Rate $rate )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage
$measure Tolerance\Throttling\RateMeasure\RateMeasure
$rate Tolerance\Throttling\Rate\Rate

it_is_a_rate_limit() public method

public it_is_a_rate_limit ( )

let() public method

public let ( Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage $storage )
$storage Tolerance\Throttling\RateMeasureStorage\RateMeasureStorage