mirror of
https://github.com/mrclay/minify.git
synced 2025-08-31 01:29:56 +02:00
port MinifyCacheAPCTest to phpunit
This commit is contained in:
committed by
Steve Clay
parent
5d46afbc72
commit
5b82a781dc
21
tests/MinifyCacheAPCTest.php
Normal file
21
tests/MinifyCacheAPCTest.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
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);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user