This storage is in the global scope. This implementation requires at least phpredis-2.2.4.
Автор: Markus Malkusch (markus@malkusch.de)
Наследование: implements bandwidthThrottle\tokenBucket\storage\Storage, implements bandwidthThrottle\tokenBucket\storage\scope\GlobalScope
 /**
  * Tests setMicrotime() fails.
  *
  * @test
  * @expectedException bandwidthThrottle\tokenBucket\storage\StorageException
  */
 public function testSetMicrotimeFails()
 {
     $redis = $this->getMock(Redis::class);
     $redis->expects($this->once())->method("set")->willReturn(false);
     $storage = new PHPRedisStorage("test", $redis);
     $storage->setMicrotime(1);
 }