Adapt tests for PhpUnit 7.5

This commit is contained in:
Philipp 2021-04-01 21:19:45 +02:00
parent 5947698dc1
commit 4b38b6aa16
No known key found for this signature in database
GPG key ID: 9A28B7D4FF5667BD
10 changed files with 36 additions and 35 deletions

View file

@ -40,6 +40,7 @@ class ArrayCacheTest extends MemoryCacheTest
public function testTTL()
{
// Array Cache doesn't support TTL
self::markTestSkipped("Array Cache doesn't support TTL");
return true;
}
}

View file

@ -463,10 +463,11 @@ class InstallerTest extends MockedTest
/**
* Test the setup of the config cache for installation
* @doesNotPerformAssertions
*/
public function testSetUpCache()
{
$this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; });
$this->l10nMock->shouldReceive('t')->andReturnUsing(function ($args) { return $args; })->times(5);
$install = new Installer();
$configCache = Mockery::mock(Cache::class);

View file

@ -33,7 +33,6 @@ class ArrayCacheLockTest extends LockTest
public function testLockTTL()
{
// ArrayCache doesn't support TTL
return true;
self::markTestSkipped("ArrayCache doesn't support TTL");
}
}

View file

@ -61,8 +61,7 @@ class SemaphoreLockTest extends LockTest
public function testLockTTL()
{
// Semaphore doesn't work with TTL
return true;
self::markTestSkipped("Semaphore doesn't work with TTL");
}
/**