/**
* @author Jérémy Derussé <
[email protected]>
*/
class FlockStoreTest extends AbstractStoreTestCase
{ use BlockingStoreTestTrait;
use SharedLockStoreTestTrait;
use UnserializableTestTrait;
protected function getStore(): PersistingStoreInterface
{ return new FlockStore();
} public function testConstructWhenRepositoryCannotBeCreated() { $this->
expectException(InvalidArgumentException::
class);
$this->
expectExceptionMessage('The FlockStore directory "/a/b/c/d/e" does not exists and cannot be created.'
);
if (!
getenv('USER'
) || 'root' ===
getenv('USER'
)) { $this->
markTestSkipped('This test will fail if run under superuser'
);
} new FlockStore('/a/b/c/d/e'
);
}