]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/ArrayCacheLockTest.php
Merge pull request #9186 from annando/valid-posts
[friendica.git] / tests / src / Core / Lock / ArrayCacheLockTest.php
index aa4ca47538914bf6ba65c2cba9cf7d12566b808b..ba807067556b3a2e0938ea60425d0dab01e8f924 100644 (file)
@@ -1,15 +1,34 @@
 <?php
+/**
+ * @copyright Copyright (C) 2020, Friendica
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
 
 namespace Friendica\Test\src\Core\Lock;
 
 use Friendica\Core\Cache\ArrayCache;
-use Friendica\Core\Lock\CacheLockDriver;
+use Friendica\Core\Lock\CacheLock;
 
 class ArrayCacheLockTest extends LockTest
 {
        protected function getInstance()
        {
-               return new CacheLockDriver(new ArrayCache('localhost'));
+               return new CacheLock(new ArrayCache('localhost'));
        }
 
        public function testLockTTL()