1
0
mirror of https://github.com/mrclay/minify.git synced 2025-01-17 13:18:13 +01:00
minify/tests/MinifyCacheAPCTest.php

23 lines
553 B
PHP
Raw Normal View History

2015-11-19 18:58:47 +02:00
<?php
2017-12-22 17:58:01 +02:00
use Minify\Test\TestCase;
2015-11-19 18:58:47 +02:00
class MinifyCacheAPCTest extends TestCase
{
public function setUp()
{
if (!function_exists('apc_store')) {
// FIXME: is APCu extension ok too?
$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);
}
}