2020-04-13 15:30:52 +02:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Smarty PHPunit tests for cache resource Apc
|
|
|
|
*
|
|
|
|
* @package PHPunit
|
|
|
|
* @author Uwe Tews
|
|
|
|
*/
|
2022-09-27 13:03:34 +03:00
|
|
|
include_once __DIR__ . '/../Memcache/CacheResourceCustomMemcacheTest.php';
|
2020-04-13 15:30:52 +02:00
|
|
|
|
2021-10-13 12:15:17 +02:00
|
|
|
/**
|
|
|
|
* class for cache resource file tests
|
|
|
|
*
|
|
|
|
* @runTestsInSeparateProcess
|
|
|
|
* @preserveGlobalState disabled
|
|
|
|
* @backupStaticAttributes enabled
|
|
|
|
*/
|
|
|
|
class CacheResourceCustomApcTest extends CacheResourceCustomMemcacheTest
|
|
|
|
{
|
|
|
|
public function setUp(): void
|
2020-04-13 15:30:52 +02:00
|
|
|
{
|
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');
|
2020-04-13 15:30:52 +02:00
|
|
|
}
|
2022-09-27 13:03:34 +03:00
|
|
|
$this->setUpSmarty(__DIR__);
|
2021-10-13 12:15:17 +02:00
|
|
|
parent::setUp();
|
|
|
|
$this->smarty->setCachingType('apc');
|
|
|
|
$this->smarty->addPluginsDir(SMARTY_DIR . '../demo/plugins/');
|
2020-04-13 15:30:52 +02:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|