bandwidthThrottle\tokenBucket\storage\StorageTest::testIsBootstrapped PHP 메소드

testIsBootstrapped() 공개 메소드

Tests isBootstrapped().
public testIsBootstrapped ( callable $storageFactory )
$storageFactory callable Returns a storage.
    public function testIsBootstrapped(callable $storageFactory)
    {
        $this->storage = call_user_func($storageFactory);
        $this->assertFalse($this->storage->isBootstrapped());
        $this->storage->bootstrap(123);
        $this->assertTrue($this->storage->isBootstrapped());
        $this->storage->remove();
        $this->assertFalse($this->storage->isBootstrapped());
    }