コード例 #1
0
 public function test_isLocked_ShouldDetermineWhetherAQueueIsLocked()
 {
     $this->assertFalse($this->lock->isLocked());
     $this->lock->acquireLock(0);
     $this->assertTrue($this->lock->isLocked());
     $this->lock->unlock();
     $this->assertFalse($this->lock->isLocked());
 }
コード例 #2
0
 private function assertNotQueueManagerIsLocked()
 {
     $this->assertFalse($this->lock->isLocked());
 }