]> git.mxchange.org Git - friendica.git/commitdiff
Make tests PHPUnit 6.0 compatible
authorPhilipp <admin@philipp.info>
Sun, 16 May 2021 21:39:03 +0000 (23:39 +0200)
committerPhilipp <admin@philipp.info>
Sun, 16 May 2021 21:39:03 +0000 (23:39 +0200)
tests/src/Content/ItemTest.php
tests/src/Core/Cache/ArrayCacheTest.php
tests/src/Core/Cache/MemcacheCacheTest.php
tests/src/Core/Cache/MemcachedCacheTest.php
tests/src/Core/Lock/ArrayCacheLockTest.php
tests/src/Core/Lock/MemcacheCacheLockTest.php
tests/src/Core/Lock/MemcachedCacheLockTest.php
tests/src/Core/Lock/SemaphoreLockTest.php
tests/src/Util/Emailer/MailBuilderTest.php
tests/src/Util/Logger/StreamLoggerTest.php

index b635f8da88d1d5184458f29915bca1b49d88f149..d947eca3b4155f0b813b12656c0f04b72d99062f 100644 (file)
@@ -25,6 +25,9 @@ use Friendica\Test\MockedTest;
 
 class ItemTest extends MockedTest
 {
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testDetermineCategoriesTerms()
        {
                static::markTestIncomplete('Test data needed.');
index ada1fac6549a4e8d88efe6791ac5f709922e2243..c2e92806ce94920342366f3203f1048e614d85dd 100644 (file)
@@ -37,6 +37,9 @@ class ArrayCacheTest extends MemoryCacheTest
                parent::tearDown();
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testTTL()
        {
                // Array Cache doesn't support TTL
index 738ff8100fb05654c7796f0d46d0b182890c191b..4947186ccb3a14fa58459e002ef151a8e5239116 100644 (file)
@@ -66,6 +66,7 @@ class MemcacheCacheTest extends MemoryCacheTest
         * @small
         *
         * @dataProvider dataSimple
+        * @doesNotPerformAssertions
         */
        public function testGetAllKeys($value1, $value2, $value3)
        {
index 88de1ad41d8474a1cc0796adbb502d16f3b76d01..842e33d082b2272ee3e9d474f956413876cef734 100644 (file)
@@ -65,6 +65,7 @@ class MemcachedCacheTest extends MemoryCacheTest
         * @small
         *
         * @dataProvider dataSimple
+        * @doesNotPerformAssertions
         */
        public function testGetAllKeys($value1, $value2, $value3)
        {
index 6ddedfa438b3bfeb6d1d9aa283aeab1461ae3605..11ea794c686e1327346bec09867b6c0c48cc3774 100644 (file)
@@ -31,6 +31,9 @@ class ArrayCacheLockTest extends LockTest
                return new CacheLock(new ArrayCache('localhost'));
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testLockTTL()
        {
                self::markTestSkipped("ArrayCache doesn't support TTL");
index 97e0bfeb852f5587f2058802cf50b1cdf0cbc3f7..98266852f9b808a3e5fd4b258adb69f5120a0403 100644 (file)
@@ -63,6 +63,7 @@ class MemcacheCacheLockTest extends LockTest
 
        /**
         * @small
+        * @doesNotPerformAssertions
         */
        public function testGetLocks()
        {
@@ -71,6 +72,7 @@ class MemcacheCacheLockTest extends LockTest
 
        /**
         * @small
+        * @doesNotPerformAssertions
         */
        public function testGetLocksWithPrefix()
        {
index c655fdb5937776768dc8e27290b1277c3235a249..67d3097fab58266f7b568e052914574968b575f5 100644 (file)
@@ -60,11 +60,17 @@ class MemcachedCacheLockTest extends LockTest
                return $lock;
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testGetLocks()
        {
                static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround');
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testGetLocksWithPrefix()
        {
                static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround');
index ca5d0af7db8dc350eda9f6a8352eb327ddc0a12a..87d8b2cd2f59595eeed51422037e92a2f5caa01a 100644 (file)
@@ -59,6 +59,9 @@ class SemaphoreLockTest extends LockTest
                return new SemaphoreLock();
        }
 
+       /**
+        * @doesNotPerformAssertions
+        */
        public function testLockTTL()
        {
                self::markTestSkipped("Semaphore doesn't work with TTL");
index 933203d156d87e54a2ed6eef93a34c99f362d82a..88452a9dab3cb2a4108c25d575f546b03afc306d 100644 (file)
@@ -93,6 +93,7 @@ class MailBuilderTest extends MockedTest
         * Test if the builder can create full rendered emails
         *
         * @todo Create test once "Renderer" and "BBCode" are dynamic
+        * @doesNotPerformAssertions
         */
        public function testBuilderWithNonRawEmail()
        {
index 7a3315e7efe7cd420e71fd0fdeb760587530806a..f6bf3313a90eda62e98f87570e6dea6ff2c95b74 100644 (file)
@@ -193,6 +193,7 @@ class StreamLoggerTest extends AbstractLoggerTest
 
        /**
         * Test a relative path
+        * @doesNotPerformAssertions
         */
        public function testRealPath()
        {