mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 01:24:51 +02:00
port MinifyCacheWinCacheTest to phpunit
This commit is contained in:
committed by
Steve Clay
parent
5b82a781dc
commit
fa9f5db843
20
tests/MinifyCacheWinCacheTest.php
Normal file
20
tests/MinifyCacheWinCacheTest.php
Normal file
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
class MinifyCacheWinCacheTest extends TestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
if (!function_exists('wincache_ucache_info')) {
|
||||
$this->markTestSkipped("To test this component, install WinCache extension");
|
||||
}
|
||||
}
|
||||
|
||||
public function test1()
|
||||
{
|
||||
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8
|
||||
$id = 'Minify_test_cache';
|
||||
|
||||
$cache = new Minify_Cache_WinCache();
|
||||
$this->assertTestCache($cache, $id, $data);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user