1
1
Fork 0

Make tests PHPUnit 6.0 compatible

This commit is contained in:
Philipp Holzer 2021-05-16 23:39:03 +02:00
parent 1bcfa714a1
commit 93c8fdcbd4
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
10 changed files with 24 additions and 0 deletions

View file

@ -25,6 +25,9 @@ use Friendica\Test\MockedTest;
class ItemTest extends MockedTest class ItemTest extends MockedTest
{ {
/**
* @doesNotPerformAssertions
*/
public function testDetermineCategoriesTerms() public function testDetermineCategoriesTerms()
{ {
static::markTestIncomplete('Test data needed.'); static::markTestIncomplete('Test data needed.');

View file

@ -37,6 +37,9 @@ class ArrayCacheTest extends MemoryCacheTest
parent::tearDown(); parent::tearDown();
} }
/**
* @doesNotPerformAssertions
*/
public function testTTL() public function testTTL()
{ {
// Array Cache doesn't support TTL // Array Cache doesn't support TTL

View file

@ -66,6 +66,7 @@ class MemcacheCacheTest extends MemoryCacheTest
* @small * @small
* *
* @dataProvider dataSimple * @dataProvider dataSimple
* @doesNotPerformAssertions
*/ */
public function testGetAllKeys($value1, $value2, $value3) public function testGetAllKeys($value1, $value2, $value3)
{ {

View file

@ -65,6 +65,7 @@ class MemcachedCacheTest extends MemoryCacheTest
* @small * @small
* *
* @dataProvider dataSimple * @dataProvider dataSimple
* @doesNotPerformAssertions
*/ */
public function testGetAllKeys($value1, $value2, $value3) public function testGetAllKeys($value1, $value2, $value3)
{ {

View file

@ -31,6 +31,9 @@ class ArrayCacheLockTest extends LockTest
return new CacheLock(new ArrayCache('localhost')); return new CacheLock(new ArrayCache('localhost'));
} }
/**
* @doesNotPerformAssertions
*/
public function testLockTTL() public function testLockTTL()
{ {
self::markTestSkipped("ArrayCache doesn't support TTL"); self::markTestSkipped("ArrayCache doesn't support TTL");

View file

@ -63,6 +63,7 @@ class MemcacheCacheLockTest extends LockTest
/** /**
* @small * @small
* @doesNotPerformAssertions
*/ */
public function testGetLocks() public function testGetLocks()
{ {
@ -71,6 +72,7 @@ class MemcacheCacheLockTest extends LockTest
/** /**
* @small * @small
* @doesNotPerformAssertions
*/ */
public function testGetLocksWithPrefix() public function testGetLocksWithPrefix()
{ {

View file

@ -60,11 +60,17 @@ class MemcachedCacheLockTest extends LockTest
return $lock; return $lock;
} }
/**
* @doesNotPerformAssertions
*/
public function testGetLocks() public function testGetLocks()
{ {
static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround');
} }
/**
* @doesNotPerformAssertions
*/
public function testGetLocksWithPrefix() public function testGetLocksWithPrefix()
{ {
static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround'); static::markTestIncomplete('Race condition because of too fast getLocks() which uses a workaround');

View file

@ -59,6 +59,9 @@ class SemaphoreLockTest extends LockTest
return new SemaphoreLock(); return new SemaphoreLock();
} }
/**
* @doesNotPerformAssertions
*/
public function testLockTTL() public function testLockTTL()
{ {
self::markTestSkipped("Semaphore doesn't work with TTL"); self::markTestSkipped("Semaphore doesn't work with TTL");

View file

@ -93,6 +93,7 @@ class MailBuilderTest extends MockedTest
* Test if the builder can create full rendered emails * Test if the builder can create full rendered emails
* *
* @todo Create test once "Renderer" and "BBCode" are dynamic * @todo Create test once "Renderer" and "BBCode" are dynamic
* @doesNotPerformAssertions
*/ */
public function testBuilderWithNonRawEmail() public function testBuilderWithNonRawEmail()
{ {

View file

@ -193,6 +193,7 @@ class StreamLoggerTest extends AbstractLoggerTest
/** /**
* Test a relative path * Test a relative path
* @doesNotPerformAssertions
*/ */
public function testRealPath() public function testRealPath()
{ {