mirror of
https://github.com/mrclay/minify.git
synced 2025-01-17 05:08:14 +01:00
25 lines
532 B
PHP
25 lines
532 B
PHP
<?php
|
|
|
|
namespace Minify\Test;
|
|
|
|
use Minify_Cache_APC;
|
|
|
|
class MinifyCacheAPCTest extends TestCase
|
|
{
|
|
public function setUp(): void
|
|
{
|
|
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);
|
|
}
|
|
}
|