Make tests PHPUnit 6.0 compatible

This commit is contained in:
Philipp 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
{
/**
* @doesNotPerformAssertions
*/
public function testDetermineCategoriesTerms()
{
static::markTestIncomplete('Test data needed.');

View File

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

View File

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

View File

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

View 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");

View 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()
{

View 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');

View File

@ -59,6 +59,9 @@ class SemaphoreLockTest extends LockTest
return new SemaphoreLock();
}
/**
* @doesNotPerformAssertions
*/
public function testLockTTL()
{
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
*
* @todo Create test once "Renderer" and "BBCode" are dynamic
* @doesNotPerformAssertions
*/
public function testBuilderWithNonRawEmail()
{

View File

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