1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-28 08:10:14 +02:00

port MinifyCacheZendPlatformTest to phpunit

This commit is contained in:
Elan Ruusamäe
2015-11-19 18:56:42 +02:00
committed by Steve Clay
parent 3cb97e2e47
commit 5d46afbc72
3 changed files with 21 additions and 33 deletions

View File

@@ -0,0 +1,21 @@
<?php
class MinifyCacheZendPlatformTest extends TestCase
{
public function setUp()
{
if (!function_exists('output_cache_put')) {
// FIXME: be specific what to actually install
$this->markTestSkipped("To test this component, install ZendPlatform");
}
}
public function test1()
{
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
$id = 'Minify_test_cache';
$cache = new Minify_Cache_ZendPlatform();
$this->assertTestCache($cache, $id, $data);
}
}