Files

32 lines
807 B
PHP
Raw Permalink Normal View History

<?php
/**
* Smarty PHPunit tests for cache resource Apc
*
2023-08-08 00:04:14 +02:00
* @author Uwe Tews
*/
include_once __DIR__ . '/../Memcache/CacheResourceCustomMemcacheTest.php';
2023-08-08 00:04:14 +02:00
include_once __DIR__ . '/../_shared/PHPunitplugins/cacheresource.apctest.php';
2021-10-13 12:15:17 +02:00
/**
* class for cache resource file tests
*
2023-08-08 00:04:14 +02:00
*
2021-10-13 12:15:17 +02:00
* @preserveGlobalState disabled
2023-08-08 00:04:14 +02:00
*
2021-10-13 12:15:17 +02:00
*/
class CacheResourceCustomApcTest extends CacheResourceCustomMemcacheTest
{
public function setUp(): void
{
2021-10-13 12:15:17 +02:00
if (!function_exists('apc_cache_info') || ini_get('apc.enable_cli')) {
$this->markTestSkipped('APC cache not available');
}
$this->setUpSmarty(__DIR__);
2021-10-13 12:15:17 +02:00
parent::setUp();
$this->smarty->setCachingType('apc');
2023-08-08 00:04:14 +02:00
$this->smarty->registerCacheResource('apc', new Smarty_CacheResource_Apctest());
}
}