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