]> git.mxchange.org Git - friendica.git/blobdiff - tests/src/Core/Lock/ArrayCacheLockTest.php
Merge pull request #11195 from annando/issue-10966
[friendica.git] / tests / src / Core / Lock / ArrayCacheLockTest.php
index aa4ca47538914bf6ba65c2cba9cf7d12566b808b..d47342db44e907bb69a032e8c8a1ae7778d5b0a4 100644 (file)
@@ -1,20 +1,41 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2022, the Friendica project
+ *
+ * @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\Cache\Type\ArrayCache;
+use Friendica\Core\Lock\Type\CacheLock;
 
 class ArrayCacheLockTest extends LockTest
 {
        protected function getInstance()
        {
-               return new CacheLockDriver(new ArrayCache('localhost'));
+               return new \Friendica\Core\Lock\Type\CacheLock(new ArrayCache('localhost'));
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testLockTTL()
        {
-               // ArrayCache doesn't support TTL
-               return true;
+               self::markTestSkipped("ArrayCache doesn't support TTL");
        }
 }