mirror of
https://github.com/mrclay/minify.git
synced 2025-01-17 21:28:14 +01:00
26 lines
610 B
PHP
26 lines
610 B
PHP
<?php
|
|
|
|
class MinifyCacheFileTest extends TestCase
|
|
{
|
|
public function test1()
|
|
{
|
|
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
|
|
$id = 'Minify_test_cache_noLock';
|
|
$cache = new Minify_Cache_File();
|
|
|
|
$this->assertTestCache($cache, $id, $data);
|
|
}
|
|
|
|
/**
|
|
* test with locks
|
|
*/
|
|
public function test2()
|
|
{
|
|
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
|
|
$id = 'Minify_test_cache_withLock';
|
|
$cache = new Minify_Cache_File('', true);
|
|
|
|
$this->assertTestCache($cache, $id, $data);
|
|
}
|
|
}
|