Make tests PHPUnit 6.0 compatible
This commit is contained in:
parent
1bcfa714a1
commit
93c8fdcbd4
10 changed files with 24 additions and 0 deletions
|
@ -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.');
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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");
|
||||||
|
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
@ -193,6 +193,7 @@ class StreamLoggerTest extends AbstractLoggerTest
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test a relative path
|
* Test a relative path
|
||||||
|
* @doesNotPerformAssertions
|
||||||
*/
|
*/
|
||||||
public function testRealPath()
|
public function testRealPath()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue