/**
* After waiting longer than the complete refill period on an empty bucket,
* getTokens() should return the capacity of the bucket.
*
* @test
*/
public function getTokensShouldReturnCapacityAfterWaitingLongerThanRefillPeriod()
{
$rate = new Rate(1, Rate::SECOND);
$bucket = new TokenBucket(10, $rate, new SingleProcessStorage());
$bucket->bootstrap(0);
sleep(11);
$this->assertEquals(10, $bucket->getTokens());
}