Author: Jacob Christiansen (jacob@colourbox.com)
Inheritance: implements Stiphle\Storage\StorageInterface
Example #1
0
 public function testStorageCanBeUnlocked()
 {
     $redisClient = $this->getMockBuilder(\Predis\Client::class)->setMethods(['del'])->getMock();
     $redisClient->expects($this->once())->method('del')->with('dave::LOCK');
     $storage = new Redis($redisClient);
     $storage->unlock('dave');
 }