Browse Source

Make tests PHPUnit 6.0 compatible

pull/10259/head
Philipp 5 months ago
parent
commit
93c8fdcbd4
No known key found for this signature in database GPG Key ID: 9A28B7D4FF5667BD
  1. 3
      tests/src/Content/ItemTest.php
  2. 3
      tests/src/Core/Cache/ArrayCacheTest.php
  3. 1
      tests/src/Core/Cache/MemcacheCacheTest.php
  4. 1
      tests/src/Core/Cache/MemcachedCacheTest.php
  5. 3
      tests/src/Core/Lock/ArrayCacheLockTest.php
  6. 2
      tests/src/Core/Lock/MemcacheCacheLockTest.php
  7. 6
      tests/src/Core/Lock/MemcachedCacheLockTest.php
  8. 3
      tests/src/Core/Lock/SemaphoreLockTest.php
  9. 1
      tests/src/Util/Emailer/MailBuilderTest.php
  10. 1
      tests/src/Util/Logger/StreamLoggerTest.php

3
tests/src/Content/ItemTest.php

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

3
tests/src/Core/Cache/ArrayCacheTest.php

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

1
tests/src/Core/Cache/MemcacheCacheTest.php

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

1
tests/src/Core/Cache/MemcachedCacheTest.php

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

3
tests/src/Core/Lock/ArrayCacheLockTest.php

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

2
tests/src/Core/Lock/MemcacheCacheLockTest.php

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

6
tests/src/Core/Lock/MemcachedCacheLockTest.php

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

3
tests/src/Core/Lock/SemaphoreLockTest.php

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

1
tests/src/Util/Emailer/MailBuilderTest.php

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

1
tests/src/Util/Logger/StreamLoggerTest.php

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

Loading…
Cancel
Save