| 1 |
<?php |
| 2 |
|
| 3 |
namespace Minify\Test; |
| 4 |
|
| 5 |
use Minify_Cache_WinCache; |
| 6 |
|
| 7 |
class MinifyCacheWinCacheTest extends TestCase |
| 8 |
{ |
| 9 |
public function setUp() |
| 10 |
{ |
| 11 |
if (!function_exists('wincache_ucache_info')) { |
| 12 |
$this->markTestSkipped("To test this component, install WinCache extension"); |
| 13 |
} |
| 14 |
} |
| 15 |
|
| 16 |
public function test1() |
| 17 |
{ |
| 18 |
$data = str_repeat(md5(time()) . 'í', 100); // 3400 bytes in UTF-8 |
| 19 |
$id = 'Minify_test_cache'; |
| 20 |
|
| 21 |
$cache = new Minify_Cache_WinCache(); |
| 22 |
$this->assertTestCache($cache, $id, $data); |
| 23 |
} |
| 24 |
} |
| 25 |
|