# wp-optimize/3.2.5/vendor/mrclay/minify/tests/MinifyCacheFileTest.php

WP-Optimize – Cache, Compress images, Minify &amp; Clean database to boost page speed &amp; performance, version 3.2.5. 30 lines.

- Page: https://pluginprobe.com/plugins/wp-optimize/3.2.5/code/vendor/mrclay/minify/tests/MinifyCacheFileTest.php
- Raw: https://pluginprobe.com/plugins/wp-optimize/3.2.5/raw/vendor/mrclay/minify/tests/MinifyCacheFileTest.php
- Modified: 2022-06-03T18:20:18+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/wp-optimize/3.2.5/code/vendor/mrclay/minify/tests/MinifyCacheFileTest.php#L10-L20`.

```php
<?php

namespace Minify\Test;

use Minify_Cache_File;

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);
    }
}

```
