bandwidthThrottle\tokenBucket\storage\StorageTest::testBootstrap PHP Method

testBootstrap() public method

Tests isBootstrapped().
public testBootstrap ( callable $storageFactory )
$storageFactory callable Returns a storage.
    public function testBootstrap(callable $storageFactory)
    {
        $this->storage = call_user_func($storageFactory);
        $this->storage->bootstrap(123);
        $this->assertTrue($this->storage->isBootstrapped());
        $this->assertEquals(123, $this->storage->getMicrotime());
    }