1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-07 22:56:33 +02:00
Files
minify/tests/MinifyCacheWinCacheTest.php
2017-12-22 18:05:33 +02:00

24 lines
556 B
PHP

<?php
namespace Minify\Test;
use Minify_Cache_WinCache;
class MinifyCacheWinCacheTest extends TestCase
{
public function setUp()
{
if (!function_exists('wincache_ucache_info')) {
$this->markTestSkipped("To test this component, install WinCache extension");
}
}
public function test1()
{
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
$id = 'Minify_test_cache';
$cache = new Minify_Cache_WinCache();
$this->assertTestCache($cache, $id, $data);
}
}