2015-11-19 18:58:47 +02:00
|
|
|
<?php
|
|
|
|
|
2017-12-22 18:04:34 +02:00
|
|
|
namespace Minify\Test;
|
|
|
|
|
|
|
|
use Minify_Cache_APC;
|
2017-12-22 17:58:01 +02:00
|
|
|
|
2015-11-19 18:58:47 +02:00
|
|
|
class MinifyCacheAPCTest extends TestCase
|
|
|
|
{
|
2024-01-04 00:19:32 -05:00
|
|
|
public function setUp(): void
|
2015-11-19 18:58:47 +02:00
|
|
|
{
|
|
|
|
if (!function_exists('apc_store')) {
|
|
|
|
$this->markTestSkipped("To test this component, install APC extension");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public function test1()
|
|
|
|
{
|
|
|
|
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
|
|
|
|
$id = 'Minify_test_cache';
|
|
|
|
|
|
|
|
$cache = new Minify_Cache_APC();
|
|
|
|
$this->assertTestCache($cache, $id, $data);
|
|
|
|
}
|
2020-04-03 10:43:07 +03:00
|
|
|
}
|