Exemplo n.º 1
0
 /**
  * @depends     testLock
  * @param       LockInterface           lock object
  * @return      void
  */
 public function testUnlock(LockInterface $lockObject)
 {
     // delete lock file "~foo.lock"
     $this->assertTrue($lockObject->unlock());
 }
Exemplo n.º 2
0
 /**
  * @access      protected
  * @param       LockInterface                    lock object
  * @return      File
  */
 protected function getLockFile(LockInterface $lockObject)
 {
     $pathname = $this->getFileInfo()->getPathname() . '/~' . $lockObject->getLockId() . '.lock';
     return new File($pathname);
 }