mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-06 15:24:27 +02:00
44 lines
842 B
PHP
44 lines
842 B
PHP
<?php
|
|
|
|
// Copyright (C) 2010-2024, the Friendica project
|
|
// SPDX-FileCopyrightText: 2010-2024 the Friendica project
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
namespace Friendica\Test\src\Core\Cache;
|
|
|
|
use Friendica\Core\Cache\Type\ArrayCache;
|
|
use Friendica\Test\MemoryCacheTestCase;
|
|
|
|
class ArrayCacheTest extends MemoryCacheTestCase
|
|
{
|
|
protected function getInstance()
|
|
{
|
|
$this->cache = new ArrayCache('localhost');
|
|
return $this->cache;
|
|
}
|
|
|
|
protected function tearDown(): void
|
|
{
|
|
$this->cache->clear(false);
|
|
parent::tearDown();
|
|
}
|
|
|
|
/**
|
|
* @doesNotPerformAssertions
|
|
*/
|
|
public function testTTL()
|
|
{
|
|
// Array Cache doesn't support TTL
|
|
self::markTestSkipped("Array Cache doesn't support TTL");
|
|
return true;
|
|
}
|
|
|
|
/**
|
|
* @small
|
|
*/
|
|
public function testGetStats()
|
|
{
|
|
self::assertEmpty($this->cache->getStats());
|
|
}
|
|
}
|