We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 847ef13 commit 99f5351Copy full SHA for 99f5351
1 file changed
test/FileLockerTest.php
@@ -134,6 +134,17 @@ public function testWillNotUnlockWithoutValidCommandName(): void
134
$this->assertNull($fileLocker->getLockFile());
135
}
136
137
+ public function testWillNotUnlockWhenEnabledAndWithoutValidCommandName(): void
138
+ {
139
+ $config = $this->getConfig();
140
+
141
+ $fileLocker = new FileLocker(true, $config['dirPath']);
142
+ $this->assertNull($fileLocker->getLockFile());
143
+ $fileLocker->unlock();
144
+ $this->assertInstanceOf(FileLocker::class, $fileLocker);
145
146
+ }
147
148
/**
149
* @throws Exception
150
*/
0 commit comments