public function testDelLock()
{
$this->lockMock
- ->shouldReceive('releaseLock')
+ ->shouldReceive('release')
->with('test', true)
->andReturn(true)
->once();
public function testDelUnknownLock()
{
$this->lockMock
- ->shouldReceive('releaseLock')
+ ->shouldReceive('release')
->with('test', true)
->andReturn(false)
->once();
->andReturn(false)
->once();
$this->lockMock
- ->shouldReceive('acquireLock')
+ ->shouldReceive('acquire')
->with('test')
->andReturn(true)
->once();
->andReturn(false)
->once();
$this->lockMock
- ->shouldReceive('acquireLock')
+ ->shouldReceive('acquire')
->with('test')
->andReturn(false)
->once();