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());
}