mirror of
https://github.com/mrclay/minify.git
synced 2025-08-31 09:31:48 +02:00
Minify_Cache_APCu replaces APC
This commit is contained in:
@@ -9,7 +9,6 @@ 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");
|
||||
}
|
||||
}
|
||||
|
25
tests/MinifyCacheAPCuTest.php
Normal file
25
tests/MinifyCacheAPCuTest.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace Minify\Test;
|
||||
|
||||
use Minify_Cache_APCu;
|
||||
|
||||
class MinifyCacheAPCuTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
if (!function_exists('apcu_store')) {
|
||||
$this->markTestSkipped("To test this component, install APCu extension");
|
||||
}
|
||||
ini_set('apc.enable_cli', 1);
|
||||
}
|
||||
|
||||
public function test1()
|
||||
{
|
||||
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
|
||||
$id = 'Minify_test_cache';
|
||||
|
||||
$cache = new Minify_Cache_APCu();
|
||||
$this->assertTestCache($cache, $id, $data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user