Skip to content

Commit 4fcb011

Browse files
committed
Added test.
1 parent e2d1dd4 commit 4fcb011

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

spec/TH/Lock/FileLockSpec.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,13 @@ public function it_can_acquire_then_release_and_acquire_again()
124124

125125
$this->release();
126126
}
127+
128+
public function it_does_not_throw_when_lock_file_does_not_exists()
129+
{
130+
$this->acquire();
131+
132+
unlink($this->lock_file);
133+
134+
$this->release();
135+
}
127136
}

0 commit comments

Comments
 (0)