+
+ /**
+ * Test acquire lock even the semaphore file exists, but isn't used
+ */
+ public function testOverrideSemFile()
+ {
+ $file = get_temppath() . '/test.sem';
+ touch($file);
+
+ $this->assertTrue(file_exists($file));
+ $this->assertTrue($this->instance->acquire('test'));
+ $this->assertTrue($this->instance->isLocked('test'));
+ $this->assertTrue($this->instance->release('test'));
+ }